Part Number Hot Search : 
STA5630 SC461 DG4052A FC113 UGSP15D CTS24 11616 CDL20840
Product Description
Full Text Search
 

To Download DS3184 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 389 rev: 061604 note: some revisions of this device may incorporate deviations from published specifications known as errata. multiple revisions of any device may be simultaneously available through various sales channels. for information about device errata, click here: www.maxim-ic.com/errata . general description the ds3181, ds3182, ds3183, and DS3184 (ds318x) integrate atm cell/hdlc packet processor(s) with a ds3/e3 framer(s) and liu(s) to map/demap atm cells or packets into as many as four ds3/e3 physical copper lines with ds3-framed, e3-framed, or clear-channel data streams on per-port basis. applications access concentrators sonet/sdh adm multiservice access platform (msap) sonet/sdh muxes pbxs multiservice protocol platform (mspp) digital cross connect test equipment atm and frame relay equipment routers and switches integrated access device (iad) pdh multiplexer/ demultiplexer ordering information part temp range pin-package ds3181* 0c to +70c 400 te-csbga (27mm x 27mm, 1.27mm pitch) ds3181n* -40c to +85c 400 te-csbga (27mm x 27mm, 1.27mm pitch) ds3182* 0c to +70c 400 te-csbga (27mm x 27mm, 1.27mm pitch) ds3182n* -40c to +85c 400 te-csbga (27mm x 27mm, 1.27mm pitch) ds3183* 0c to +70c 400 te-csbga (27mm x 27mm, 1.27mm pitch) ds3183n* -40c to +85c 400 te-csbga (27mm x 27mm, 1.27mm pitch) DS3184 0c to +70c 400 te-csbga (27mm x 27mm, 1.27mm pitch) DS3184n -40c to +85c 400 te-csbga (27mm x 27mm, 1.27mm pitch) * future product?contact factory for availability. functional diagram ds318x pos-phy or utopia ds3/e3/sts-1 ports ds3/e3/sts-1 liu ds3/e3 framer/ formatter system interface cell/ packet processor features  single (ds3181), dual (ds3182), triple (ds3183), or quad (DS3184) with integrated liu atm/packet phys for ds3, e3, and clear- channel 52mbps (cc52)  pin compatible for ease of port density migration in the same pc board platform  each port independently configurable  perform receive clock/data recovery and transmit waveshaping  jitter attenuator can be placed either in the receive or transmit paths  interfaces to 75  coaxial cable at lengths up to 380 meters or 1246 feet (ds3) or 440 meters or 1443 feet (e3)  uses 1:2 transformers on both tx and rx  universal phys map atm cells and/or hdlc packets into ds3 or e3 data streams  utopia l2/l3 or pos-phy? l2/l3 or spi-3 interface with 8-, 16-, or 32-bit bus width  66mhz utopia l3 and pos-phy l3 clock  52mhz utopia l2 and pos-phy l2 clock  ports independently configurable for cell or packet traffic in pos-phy bus modes  direct, plcp, dss, and clear-channel cell mapping ds3181/ds3182/ds3183/DS3184 single/dual/triple/quad atm/packet phys with built-in liu www.maxim-ic.com pos-phy and pos-phy level 3 are trademarks of pmc-sierra, inc.
ds3181/ds3182/ds3183/DS3184 2 of 389 features (continued)  direct and clear-channel packet mapping  on-chip ds3 (m23 or c-bit) and e3 (g.751 or g.832) framer(s)  ports independently configurable for ds3, e3 (full or subrate) or arbitrary framing protocols up to 52mbps  programmable (externally controlled or internally finite state machine controlled) subrate ds3/e3  full-featured ds3/e3/plcp alarm generation and detection  built-in hdlc controllers with 256-byte fifos for insertion/extraction of ds3 pmdl, g.751 sn bit, and g.832 nr/gc bytes and plcp nr/gc bytes  on-chip berts for prbs and repetitive pattern generation, detection, and analysis  large performance-monitoring counters for accumulation intervals of at least 1 second  flexible overhead insertion/extraction ports for ds3, e3, and plcp framers  loopbacks include line, diagnostic, framer, payload, analog, and system interface with capabilities to insert ais in the directions away from loopback directions  ports can be disabled to reduce power  integrated clock rate adapter to generate the remaining internally required 44.736mhz (ds3), 34.368mhz (e3), and 52mhz (arbitrary framing at up to 52mbps) from a single clock reference source at one of those three frequencies  pin compatible with the ds3171/2/3/4 family and the ds3161/2/3/4 family  8/16-bit generic microprocessor interface  low-power (2.7w typ) 3.3v operation (5v- tolerant i/o)  small, high-density, thermally enhanced, chip- scale bga packaging (te-csbga) with 1.27mm pin pitch  industrial temperature operation: -40c to +85c  ieee1149.1 jtag test port detailed description the ds3181 (single), ds3182 (dual), ds3183 (triple), and DS3184 (quad) phys perform all the functions necessary for mapping/demapping atm cells and/or packets into as many as four ds3 (44.736mbps) framed, e3 (34.368mbps) framed, or 52mbps clear-channel data streams on ds3, e3, or sts-1 physical copper lines. each line interface unit (liu) has independent receive and transmit paths. the receiver liu block performs clock and data recovery from a b3zs- or hdb3-coded ami signal and monitors for loss of the incoming signal or can be bypassed for direct clock and data inputs. the receiver liu block optionally performs b3zs/hdb3 decoding. the transmitter liu drives standard pulse-shape waveforms onto 75  coaxial cable or can be bypassed for direct clock and data outputs. the jitter attenuator can be placed in either transmit or receive data path when the liu is enabled. dedicated cell processor and packet processor blocks prepare outgoing cells or packets for transmission and check incoming cells or packets upon arrival. built-in ds3/e3 framers transmit and receive cell/packet data in properly formatted m23 ds3, c-bit ds3, g.751 e3, or g.832 e3 data streams. plcp framers provide legacy atm transmission-convergence support . dss scrambling is performed for clear-channel atm cell support . with integrated hardware support for both cells and packets, the ds318x ds3/e3 atm/packet phys provide system on- chip solutions (from ds3/e3/sts-1 physical copper lines to atm/packet utopia/pos-phy level 2/3 system switch) for universal high-density line cards in the unchannelized ds3/e3/clear-channel ds3 atm/packet applications. unused functions can be powered down to reduce device power. the ds318x atm/packet phys with embedded liu conform to the telecommunications standards listed in section 4 .
ds3181/ds3182/ds3183/DS3184 3 of 389 table of contents 1 block diagrams 14 2 applications 15 3 feature details 17 3.1 g lobal f eatures ............................................................................................................................... ......... 17 3.2 r eceive ds3/e3/sts-1 liu f eatures ....................................................................................................... 17 3.3 r eceive ds3/e3 f ramer f eatures ........................................................................................................... 17 3.4 r eceive plcp f ramer f eatures ............................................................................................................... 18 3.5 r eceive c ell p rocessor f eatures .......................................................................................................... 18 3.6 r eceive p acket p rocessor f eatures ...................................................................................................... 18 3.7 r eceive fifo f eatures ............................................................................................................................. 19 3.8 r eceive s ystem i nterface f eatures ........................................................................................................ 19 3.9 t ransmit s ystem i nterface f eatures ...................................................................................................... 19 3.10 t ransmit fifo f eatures ........................................................................................................................... 19 3.11 t ransmit c ell p rocessor f eatures ........................................................................................................ 19 3.12 t ransmit p acket p rocessor f eatures .................................................................................................... 19 3.13 t ransmit plcp f ormatter f eatures ....................................................................................................... 20 3.14 t ransmit ds3/e3 f ormatter f eatures .................................................................................................... 20 3.15 t ransmit ds3/e3/sts-1 liu f eatures ..................................................................................................... 20 3.16 j itter a ttenuator f eatures ..................................................................................................................... 20 3.17 c lock r ate a dapter f eatures ................................................................................................................. 20 3.18 hdlc o verhead c ontroller f eatures ................................................................................................... 20 3.19 feac c ontroller f eatures ..................................................................................................................... 21 3.20 t rail t race b uffer f eatures ................................................................................................................... 21 3.21 b it e rror r ate t ester (bert) f eatures ................................................................................................ 21 3.22 l oopback f eatures ............................................................................................................................... .... 21 3.23 m icroprocessor i nterface f eatures ..................................................................................................... 21 3.24 s ubrate f eatures (f ractional ds3/e3) .................................................................................................. 21 3.25 t est f eatures ............................................................................................................................... ............. 22 4 standards compliance 23 5 acronyms and glossary 25 6 major operational modes 26 6.1 ds3/e3 atm/p acket m ode ........................................................................................................................ 26 6.2 ds3/e3 atm/p acket ?ohm m ode ............................................................................................................ 27 6.3 ds3/e3 i nternal f ractional (s ubrate ) atm/p acket m ode .................................................................... 28 6.4 ds3/e3 e xternal f ractional (s ubrate ) atm/p acket m ode .................................................................. 29 6.5 ds3/e3 f lexible e xternal f ractional (s ubrate ) m ode c onfiguration m ode ..................................... 30 6.6 ds3/e3 g.751 plcp atm m ode ................................................................................................................ 31 6.7 ds3/e3 g.751 plcp atm?ohm m ode .................................................................................................... 32 6.8 c lear -c hannel atm/p acket m ode ........................................................................................................... 34 6.9 c lear -c hannel atm/p acket ?ohm m ode ............................................................................................... 35 6.10 c lear -c hannel o ctet a ligned atm/p acket ?ohm m ode ...................................................................... 36 7 major line interface operating modes 37 7.1 ds3hdb3/b3zs/ami liu m ode ................................................................................................................. 37 7.2 hdb3/b3zs/ami n on -liu l ine i nterface m ode ....................................................................................... 39 7.3 uni l ine i nterface m ode ........................................................................................................................... 40 7.4 uni l ine i nterface ?ohm m ode ............................................................................................................... 41 8 pin descriptions 42 8.1 s hort p in d escriptions ............................................................................................................................. 42 8.2 d etailed p in d escriptions ......................................................................................................................... 47 8.3 p in f unctional t iming ............................................................................................................................... .66 8.3.1 line io........................................................................................................................ .......................... 66 8.3.2 ds3/e3 framing and plcp ov erhead functiona l timing................................................................... 69
ds3181/ds3182/ds3183/DS3184 4 of 389 8.3.3 internal (ifrac) and external (xfrac) fracti onal ds3/e3 overhead functional timing ................. 72 8.3.4 flexible fractional (ffrac) ds3/e3 overhead interface functinal timing ....................................... 73 8.3.5 utopia/pos-phy/spi-3 system interface functional timing........................................................... 75 8.3.6 microprocessor interface functional timing ..................................................................................... ... 88 8.3.7 jtag functional timing......................................................................................................... .............. 92 9 initialization and configuration 93 9.1 m onitoring and d ebugging ....................................................................................................................... 95 9.1.1 cell/packet fifo............................................................................................................... ................... 95 9.1.2 cell processor ................................................................................................................. ..................... 95 9.1.3 packet processor ............................................................................................................... .................. 96 10 functional description 97 10.1 p rocessor b us i nterface ......................................................................................................................... 97 10.1.1 8/16-bit bu s widths............................................................................................................ .................. 97 10.1.2 ready signal ( rdy ) ............................................................................................................................. 9 7 10.1.3 byte swap modes ................................................................................................................ ................ 97 10.1.4 read-write / data strobe modes ................................................................................................. ........ 97 10.1.5 clear on read / clear on write modes ........................................................................................... ..... 97 10.1.6 global writ e method ............................................................................................................ ................ 98 10.1.7 interrupt and pin modes........................................................................................................ ............... 98 10.1.8 interrupt structure ............................................................................................................ .................... 98 10.2 c locks ............................................................................................................................... ......................... 99 10.2.1 line clock modes............................................................................................................... .................. 99 10.2.2 sources of clock output pin signals ............................................................................................ ..... 101 10.2.3 line io pin timing source selection ............................................................................................ ..... 103 10.2.4 clock structures on signal io pins ............................................................................................. ...... 106 10.2.5 gapped clocks.................................................................................................................. ................. 107 10.3 r eset and p ower -d own .......................................................................................................................... 108 10.4 g lobal r esources ............................................................................................................................... .... 110 10.4.1 clock rate adapter (clad) ...................................................................................................... ......... 110 10.4.2 8 khz reference generation ..................................................................................................... ........ 112 10.4.3 one second reference generation................................................................................................ ... 114 10.4.4 general-purpose io pins ........................................................................................................ ........... 114 10.4.5 performance monitor counter update details ................................................................................... 11 5 10.4.6 transmit manual error insertion ................................................................................................ ........ 116 10.5 p er -p ort r esources ............................................................................................................................... 117 10.5.1 loopbacks ...................................................................................................................... .................... 117 10.5.2 loss of signal propagat ion ..................................................................................................... .......... 119 10.5.3 ais lo gic ...................................................................................................................... ...................... 119 10.5.4 loop timing mode ............................................................................................................... .............. 122 10.5.5 hdlc overhead controller ....................................................................................................... ......... 122 10.5.6 trail trace .................................................................................................................... ...................... 122 10.5.7 bert........................................................................................................................... ....................... 122 10.5.8 fractional payload controller.................................................................................................. ........... 123 10.5.9 plcp/fractional port pins ...................................................................................................... ............ 123 10.5.10 framing modes .................................................................................................................. ................ 127 10.5.11 mapping modes.................................................................................................................. ................ 129 10.5.12 line interface modes........................................................................................................... ............... 133 10.6 utopia/pos-phy/spi-3 s ystem i nterface ........................................................................................... 135 10.6.1 general description ............................................................................................................ ............... 135 10.6.2 features ....................................................................................................................... ...................... 135 10.6.6 system interface bus controller ................................................................................................ ........ 136 10.7 atm c ell / hdlc p acket p rocessing .................................................................................................... 141 10.7.1 general description ............................................................................................................ ............... 141 10.7.2 features ....................................................................................................................... ...................... 141 10.7.3 transmit cell/packet processor................................................................................................. ........ 142 10.7.4 receive cell/packet processor.................................................................................................. ........ 142 10.7.5 cell processor ................................................................................................................. ................... 143
ds3181/ds3182/ds3183/DS3184 5 of 389 10.7.6 packet processor ............................................................................................................... ................ 148 10.7.7 fifo ........................................................................................................................... ........................ 150 10.7.8 system loopback................................................................................................................ ............... 151 10.8 ds3/e3 plcp f ramer .............................................................................................................................. 1 53 10.8.1 general description ............................................................................................................ ............... 153 10.8.2 features ....................................................................................................................... ...................... 153 10.8.3 transmit plcp frame processor .................................................................................................. .... 154 10.8.4 receive plcp frame processor ................................................................................................... .... 154 10.8.5 transmit ds3 plcp frame processor .............................................................................................. 154 10.8.6 receive ds3 plcp frame processor ............................................................................................... 157 10.8.7 transmit e3 plcp frame processor............................................................................................... .. 158 10.8.8 receive e3 plcp frame processor................................................................................................ .. 161 10.9 f ractional p ayload c ontroller ........................................................................................................... 163 10.9.1 general description ............................................................................................................ ............... 163 10.9.2 features ....................................................................................................................... ...................... 163 10.9.3 transmit fractional interface .................................................................................................. ........... 164 10.9.4 transmit fractional controller................................................................................................. ........... 164 10.9.5 receive fractional interface ................................................................................................... ........... 164 10.9.6 receive fractional controller.................................................................................................. ........... 164 10.10 ds3/e3 f ramer / f ormatter ................................................................................................................... 166 10.10.1 general description ............................................................................................................ ............... 166 10.10.2 features ....................................................................................................................... ...................... 166 10.10.3 transmit formatter............................................................................................................. ................ 167 10.10.4 receive framer................................................................................................................. ................. 167 10.10.5 c-bit ds3 framer/formatter ..................................................................................................... ......... 171 10.10.6 m23 ds3 framer/formatter ....................................................................................................... ........ 174 10.10.7 g.751 e3 framer/formatter...................................................................................................... ......... 177 10.10.8 g.832 e3 framer/formatter...................................................................................................... ......... 179 10.10.9 clear-channel frame processor .................................................................................................. ..... 184 10.11 hdlc o verhead c ontroller .................................................................................................................. 184 10.11.1 general description ............................................................................................................ ............... 184 10.11.2 features ....................................................................................................................... ...................... 185 10.11.3 transmit fifo .................................................................................................................. .................. 185 10.11.4 transmit hdlc overhead processor ............................................................................................... . 186 10.11.5 receive hdlc overhead processor ................................................................................................ . 186 10.11.6 receive fifo ................................................................................................................... .................. 187 10.12 t rail t race c ontroller .......................................................................................................................... 187 10.12.1 general description ............................................................................................................ ............... 187 10.12.2 features ....................................................................................................................... ...................... 188 10.12.3 functional description......................................................................................................... ............... 189 10.12.4 transmit data storage .......................................................................................................... ............. 189 10.12.5 transmit trace id processor .................................................................................................... ......... 189 10.12.6 transmit trail trace processing ................................................................................................ ........ 189 10.12.7 receive trace id processor ..................................................................................................... ......... 189 10.12.8 receive trail trace processing ................................................................................................. ........ 189 10.12.9 receive data storage ........................................................................................................... ............. 190 10.13 feac c ontroller ............................................................................................................................... .... 191 10.13.1 general description ............................................................................................................ ............... 191 10.13.2 features ....................................................................................................................... ...................... 191 10.13.3 functional description......................................................................................................... ............... 191 10.14 l ine e ncoder /d ecoder ............................................................................................................................ 193 10.14.1 general description ............................................................................................................ ............... 193 10.14.2 features ....................................................................................................................... ...................... 193 10.14.3 b3zs/hdb3 encoder .............................................................................................................. ........... 193 10.14.4 transmit line interface ........................................................................................................ .............. 194 10.14.5 receive line interface ......................................................................................................... .............. 194 10.14.6 b3zs/hdb3 decoder .............................................................................................................. ........... 194 10.15 bert........................................................................................................................... .............................. 196
ds3181/ds3182/ds3183/DS3184 6 of 389 10.15.1 general description ............................................................................................................ ............... 196 10.15.2 features ....................................................................................................................... ...................... 196 10.15.3 configuration and monitoring ................................................................................................... .......... 196 10.15.4 receive pattern detection ...................................................................................................... ........... 197 10.15.5 transmit pattern generation.................................................................................................... .......... 199 10.16 liu ? l ine i nterface u nit ........................................................................................................................ 200 10.16.1 general description ............................................................................................................ ............... 200 10.16.2 features ....................................................................................................................... ...................... 200 10.16.3 detailed de scription ........................................................................................................... ................ 201 10.16.4 transmitter .................................................................................................................... ..................... 201 10.16.5 receiver ....................................................................................................................... ...................... 202 11 overall register map 205 12 register maps and descriptions 208 12.1 r egisters b it m aps ............................................................................................................................... ... 208 12.1.1 global register bit map ........................................................................................................ ............. 208 12.1.2 hdlc register bit map.......................................................................................................... ............ 211 12.1.3 t3 register bit map ............................................................................................................ ............... 213 12.1.4 e3 g.751 register bit map ...................................................................................................... .......... 214 12.1.5 e3 g.832 register bit map ...................................................................................................... .......... 214 12.1.6 clear-channel register bit map ................................................................................................. ....... 215 12.1.7 fractional register bit map.................................................................................................... ............ 216 12.1.8 transmit cell processor bit map ................................................................................................ ....... 218 12.1.9 transmit packet processor bit map.............................................................................................. ..... 219 12.2 g lobal r egisters ............................................................................................................................... ..... 221 12.2.1 register bit descriptions...................................................................................................... .............. 222 12.3 utopia/pos-phy s ystem i nterface ..................................................................................................... 230 12.3.1 transmit system interface ...................................................................................................... ........... 230 12.3.2 receive system interface register map.......................................................................................... .. 231 12.4 p er -p ort c ommon ............................................................................................................................... .... 234 12.4.1 register bit descriptions...................................................................................................... .............. 234 12.5 bert........................................................................................................................... .............................. 247 12.5.1 bert register map .............................................................................................................. ............. 247 12.5.2 bert register bit descriptions ................................................................................................. ........ 247 12.6 b3zs/hdb3 l ine e ncoder /d ecoder ....................................................................................................... 254 12.6.1 transmit side line encoder/d ecoder register map ......................................................................... 254 12.6.2 receive side line encoder/ decoder register map .......................................................................... 255 12.7 hdlc........................................................................................................................... .............................. 259 12.7.1 hdlc transmit side register map................................................................................................ .... 259 12.7.2 hdlc receive side register map................................................................................................. .... 262 12.8 feac c ontroller ............................................................................................................................... .... 266 12.8.1 feac transmit side register map................................................................................................ .... 266 12.8.2 feac receive side register map................................................................................................. .... 268 12.9 t rail t race ............................................................................................................................... ................ 271 12.9.1 trail trace transmit side...................................................................................................... ............. 271 12.9.2 trail trace receive side register map .......................................................................................... ... 272 12.10 ds3/e3 f ramer ............................................................................................................................... ......... 277 12.10.1 transmit ds3 ................................................................................................................... .................. 277 12.10.2 receive ds3 register map....................................................................................................... ......... 279 12.10.3 transmit g.751 e3 .............................................................................................................. ............... 287 12.10.4 receive g.751 e3 register map .................................................................................................. ..... 289 12.10.5 transmit g.832 e3 register map ................................................................................................. ..... 293 12.10.6 receive g.832 e3 register map .................................................................................................. ..... 297 12.10.7 transmit clear channel ......................................................................................................... ............ 305 12.10.8 receive clear channel .......................................................................................................... ............ 306 12.11 f ractional ds3/e3 ......................................................................................................................... ......... 308 12.11.1 fractional transmit side register map.......................................................................................... .... 308 12.11.2 fractional receive si de register map........................................................................................... .... 309
ds3181/ds3182/ds3183/DS3184 7 of 389 12.12 ds3/e3 plcp .................................................................................................................... ....................... 311 12.12.1 transmit side plcp............................................................................................................. .............. 311 12.12.2 receive side plcp register map ................................................................................................. .... 315 12.13 fifo r egisters ............................................................................................................................... ......... 323 12.13.1 transmit fifo register map..................................................................................................... ......... 323 12.13.2 receive fifo register map...................................................................................................... ......... 326 12.14 c ell /p acket p rocessor .......................................................................................................................... 328 12.14.1 transmit cell processor register map ........................................................................................... ... 328 12.14.2 receive cell processor......................................................................................................... ............. 335 12.14.3 transmit packet processor register map ......................................................................................... 345 12.14.4 receive packet processor register map .......................................................................................... 350 13 jtag information 359 13.1 jtag d escription ............................................................................................................................... ..... 359 13.2 jtag tap c ontroller s tate m achine d escription ............................................................................. 359 13.3 jtag i nstruction r egister and i nstructions ...................................................................................... 361 13.4 jtag id c odes ............................................................................................................................... .......... 363 13.5 jtag f unctional t iming .......................................................................................................................... 363 13.6 io p ins ............................................................................................................................... ....................... 363 14 pin assignment 364 15 package mechanical dimensions 367 16 package thermal information 370 17 dc electrical characteristics 371 18 ac timing characteristics 373 18.1 f ractional p ort c haracteristics .......................................................................................................... 375 18.2 l ine i nterface ac c haracteristics ....................................................................................................... 375 18.3 m iscellaneous p in ac c haracteristics ................................................................................................ 376 18.4 o verhead p ort ac c haracteristics ...................................................................................................... 376 18.5 s ystem i nterface ac c haracteristics .................................................................................................. 377 18.6 m icro i nterface ac c haracteristics .................................................................................................... 379 18.7 clad j itter c haracteristics ................................................................................................................. 382 18.8 liu i nterface ac c haracteristics ........................................................................................................ 382 18.8.1 waveform templates ............................................................................................................. ............ 382 18.8.2 liu input/output characteristics............................................................................................... ......... 386 18.9 jtag i nterface ac c haracteristics ..................................................................................................... 388 19 revision history 389
ds3181/ds3182/ds3183/DS3184 8 of 389 list of figures figure 1-1. liu external connections for a ds 3/e3/sts-1 port of a ds318x device ............................................ 14 figure 1-2. ds318x func tional block diagram .................................................................................... ..................... 14 figure 2-1. four-port unchannelized atm over ds3/e3/cc52 line card ............................................................. .. 15 figure 2-2. four-port unchannelized hdlc over ds3/e3/cc52 line card ............................................................ .16 figure 6-1. ds3/e3 atm/packet mode ............................................................................................. ........................ 26 figure 6-2. ds3/e3 atm/packet?ohm mode ......................................................................................... ................ 27 figure 6-3. ds3/e3 internal fractional atm/ packet mode ......................................................................... .............. 28 figure 6-4. ds3/e3 external fractional atm/ packet mode ......................................................................... ............. 29 figure 6-5. ds3/e3 flexible external fractional mode ........................................................................... .................. 30 figure 6-6. ds3/e3 g.751 plcp atm mode ......................................................................................... ................... 31 figure 6-7. ds3/e3 g.75 1 plcp atm?ohm mode ..................................................................................... ........... 33 figure 6-8. clear-channel atm/packet modes..................................................................................... .................... 34 figure 6-9. clear-channel atm/packet?ohm mode .................................................................................. ............ 35 figure 6-10. clear-channel octet aligned atm/packet?ohm mode................................................................... ... 36 figure 7-1. hdb3/b3zs/ami liu mode............................................................................................. ........................ 38 figure 7-2. hdb3/b3zs/ami non-liu line interface mode .......................................................................... ............ 39 figure 7-3. uni line interface mode ............................................................................................ ............................. 40 figure 7-4. uni line interface?ohm mode ........................................................................................ ..................... 41 figure 8-1. tx line io b3zs functional timing diagram .......................................................................... ............... 66 figure 8-2. tx line io hdb3 functional timing diagram .......................................................................... .............. 67 figure 8-3. rx line io b3zs functional timing diagram.......................................................................... ............... 67 figure 8-4. rx line io hdb3 functional timing diagram .......................................................................... .............. 68 figure 8-5. tx line io uni ohm functional timing diagram ....................................................................... ........... 68 figure 8-6. tx line io uni octet aligned ohm functio nal timing diagram......................................................... ... 68 figure 8-7. rx line io ohm uni functional timing diagram ....................................................................... ........... 69 figure 8-8. rx line io uni octet aligned ohm functional timing diagram ......................................................... .. 69 figure 8-9. ds3 framing rece ive overhead port timing........................................................................... .............. 69 figure 8-10. e3 g.751 framing receive overhead port timing ..................................................................... ......... 70 figure 8-11. e3 g.832 framing receive overhead port timing ..................................................................... ......... 70 figure 8-12. ds3 framing tr ansmit overhead po rt timing......................................................................... ............. 70 figure 8-13. e3 g.751 framing transmit overhead port timing .................................................................... ......... 70 figure 8-14. e3 g.832 framing transmit overhead port timing .................................................................... ......... 71 figure 8-15. ds3 plcp receive overhead port timing............................................................................. .............. 71 figure 8-16. e3 g.751 plcp receive overhead port timing ........................................................................ .......... 71 figure 8-17. ds3 plcp transmit overhead port timing............................................................................ .............. 71 figure 8-18. e3 g.751 plcp transmit overhead port timing ....................................................................... .......... 72 figure 8-19. external (xfrac) transmit fractional timing....................................................................... ............... 72 figure 8-20. external (xfrac) receive fractional timing........................................................................ ............... 72 figure 8-21. internal (ifrac ) transmit fractional timing ....................................................................... ................. 73 figure 8-22. internal (ifrac) receive fractional timing ........................................................................ ................. 73 figure 8-23. transmit flexible fractional (ffrac) timing....................................................................... ................ 74 figure 8-24. receive flexible fractional (ffrac) timing........................................................................ ................ 74 figure 8-25. utopia level 2 transmit cell transfer direct mode ................................................................. .......... 75 figure 8-26. utopia level 2 receive cell transfer direct mode .................................................................. .......... 76 figure 8-27. utopia level 2 transmit mu ltiple cell trans fer polled mode ........................................................ ..... 77 figure 8-28. utopia level 2 receive multiple cell tr ansfer polled mode ......................................................... ..... 77 figure 8-29. utopia level 2 receive unexpected multiple cell transfer.......................................................... ..... 78 figure 8-30. utopia level 3 transmit multiple cell transfer direct mode........................................................ ...... 79 figure 8-31. utopia level 3 transmit mu ltiple cell trans fer polled mode ........................................................ ..... 80 figure 8-32. utopia level 3 receive multiple cell transfer direct mode......................................................... ...... 81 figure 8-33. utopia level 3 receive multiple cell tr ansfer polled mode ......................................................... ..... 81 figure 8-34. transmit multiple packet transfer to different phy ports (direct status mode) ................................... 82 figure 8-35. pos-phy level 2 receive multiple packet transfer from different phy ports/devices (direct status mode) .......................................................................................................................... ...................................... 83 figure 8-36. pos-phy level 2 transmit multiple packet transfer to different phy ports (polled status mode) .... 84 figure 8-37. pos-phy level 2 receive multip le packet transfer (po lled status mode).......................................... 85
ds3181/ds3182/ds3183/DS3184 9 of 389 figure 8-38. pos-phy level 3 transmit mult iple packet transfer in-band addressing.......................................... 86 figure 8-39. pos-phy level 3 receive mult iple packet transfer in-band addressing........................................... 87 figure 8-40. 16-bit mode write................................................................................................. ................................. 88 figure 8-41. 16-bit mode read .................................................................................................. ............................... 88 figure 8-42. 8-bit mode write.................................................................................................. .................................. 89 figure 8-43. 8-bit mode read ................................................................................................... ................................ 89 figure 8-44. 16-bit mode without byte swap ..................................................................................... ....................... 90 figure 8-45. 16-bit mode with byte swap ........................................................................................ ......................... 90 figure 8-46. clear status latched register on read............................................................................. ................... 91 figure 8-47. clear status latched register on write............................................................................ .................... 91 figure 8-48. rdy signal f unctional timing writes ............................................................................... .................... 92 figure 8-49. rdy signal functional timing read................................................................................. .................... 92 figure 10-1. interrupt structure ............................................................................................... .................................. 99 figure 10-2. internal tx clock................................................................................................. ................................ 102 figure 10-3. internal rx clock ................................................................................................. ............................... 103 figure 10-4. example io pin clock muxing....................................................................................... ...................... 107 figure 10-5. reset sources..................................................................................................... ................................ 108 figure 10-6. clad block ........................................................................................................ ................................. 111 figure 10-7. 8kref logic ....................................................................................................... ................................ 113 figure 10-8. performance monitor update logic .................................................................................. .................. 116 figure 10-9. transmit error insert logic....................................................................................... ........................... 117 figure 10-10. loopback modes ................................................................................................... ............................ 118 figure 10-11. alb mux .......................................................................................................... .................................. 118 figure 10-12. ais signal flow .................................................................................................. ............................... 121 figure 10-13. ds3 c-bit or ds3 m23 (with c-bit generation) frame............................................................... ...... 129 figure 10-14. ds3 plcp frame................................................................................................... ........................... 130 figure 10-15. ds3 m23 (with c-bi ts used as payload) frame ...................................................................... .......... 131 figure 10-16. e3 g.751 frame................................................................................................... ............................. 131 figure 10-17. e3 plcp frame .................................................................................................... ............................ 132 figure 10-18. example e3 g.751 in ternal fractional frame....................................................................... ............ 132 figure 10-19. e3 g.832 frame................................................................................................... ............................. 133 figure 10-20. system interface functional diagram .............................................................................. ................. 135 figure 10-21. normal packet format in 32-bit mode .............................................................................. ................ 136 figure 10-22. normal packet format in 16-bit mode .............................................................................. ................ 136 figure 10-23. byte reordered packet format in 32-bit mode ...................................................................... .......... 136 figure 10-24. byte reordered packet format in 16-bit mode ...................................................................... .......... 137 figure 10-25. atm cell/hdlc packet functional diagram .......................................................................... .......... 141 figure 10-26. receive dss scramble r synchronization state diagram.............................................................. ... 145 figure 10-27. cell delineation state diagram ................................................................................... ...................... 146 figure 10-28. hec error monitoring state diagram............................................................................... ................. 147 figure 10-29. cell format for 53-byte cell with 32-bit data bus ................................................................ ........... 147 figure 10-30. cell format for 52-byte cell with 32-bit data bus ................................................................ ........... 148 figure 10-31. plcp framer functional diagram ................................................................................... ................. 153 figure 10-32. ds3 plcp frame format ............................................................................................ ..................... 154 figure 10-33. ds3 plcp g1 byte format .......................................................................................... .................... 155 figure 10-34. e3 plcp frame format............................................................................................. ....................... 159 figure 10-35. e3 plcp g1 byte format ........................................................................................... ...................... 159 figure 10-36. fractional payload cont roller detailed block diagram ............................................................. ........ 163 figure 10-37. data group format ................................................................................................ ........................... 165 figure 10-38. frame format..................................................................................................... ............................... 165 figure 10-39. framer de tailed block diagram .................................................................................... .................... 166 figure 10-40. ds3 frame format................................................................................................. ........................... 168 figure 10-41. ds3 subframe framer state diagram ................................................................................ .............. 169 figure 10-42. ds3 multiframe framer state diagram.............................................................................. ............... 170 figure 10-43. g.751 e3 frame format ............................................................................................ ....................... 177 figure 10-44. g.832 e3 frame format ............................................................................................ ....................... 179 figure 10-45. ma byte format ................................................................................................... ............................. 180 figure 10-46. hdlc controller block diagram .................................................................................... ................... 185
ds3181/ds3182/ds3183/DS3184 10 of 389 figure 10-47. trail trace c ontroller block diagram ............................................................................. ................... 188 figure 10-48. trail trace byte (dt = trail trace data)......................................................................... .................. 190 figure 10-49. feac controller block diagram.................................................................................... .................... 191 figure 10-50. feac codeword format ............................................................................................. ...................... 192 figure 10-51. line encoder /decoder bloc k diagram ............................................................................... ............... 193 figure 10-52. b3zs signatures .................................................................................................. ............................. 195 figure 10-53. hdb3 signatures.................................................................................................. ............................. 195 figure 10-54. bert block diagram ............................................................................................... ......................... 196 figure 10-55. prbs synchronization state diagram............................................................................... ............... 198 figure 10-56. repetitive pattern synchronization state diagram................................................................. .......... 199 figure 10-57. liu functional diagram........................................................................................... .......................... 200 figure 10-58. ds3/e3/sts-1 liu block diagram................................................................................... ................. 201 figure 10-59. receiver jitter tolerance ........................................................................................ .......................... 204 figure 13-1. jtag block diagram................................................................................................ ........................... 359 figure 13-2. jtag tap controller state machine ................................................................................. ................. 360 figure 13-3. jtag functional timing............................................................................................ .......................... 363 figure 14-1. DS3184 pin assignments?400- lead bga ............................................................................... ......... 364 figure 14-2. ds3183 pin assignments?400- lead bga ............................................................................... ......... 365 figure 14-3. ds3182 pin assignments?400- lead bga ............................................................................... ......... 365 figure 14-4. ds3181 pin assignments?400- lead bga ............................................................................... ......... 366 figure 15-1. mechanical di mensions?400- lead bga................................................................................ ........... 367 figure 15-2. mechanical di mensions (continued) ................................................................................. .................. 369 figure 18-1. clock period and duty cycle definitions........................................................................... .................. 373 figure 18-2. rise time, fall time, and jitter definitions ...................................................................... .................. 373 figure 18-3. hold, setup, and dela y definitions (ris ing clock edge) ............................................................ ........ 373 figure 18-4. hold, setup, and delay definitions (falling clock edge)........................................................... ......... 374 figure 18-5. to/from high-z delay definitions (ris ing clock edge).............................................................. ........ 374 figure 18-6. to/from high-z delay definitions (fal ling cloc k edge) ............................................................. ........ 374 figure 18-7. micro interface n onmultiplexed read/ write cycle ................................................................... .......... 380 figure 18-8. micro interface multiplexed read cycle............................................................................ .................. 381 figure 18-9. e3 waveform template.............................................................................................. ......................... 384 figure 18-10. sts-1 pu lse mask template ........................................................................................ .................... 385 figure 18-11. ds3 pulse mask template.......................................................................................... ...................... 386
ds3181/ds3182/ds3183/DS3184 11 of 389 list of tables table 4-1. standards compliance ................................................................................................ ............................. 23 table 6-1. ds3/e3 atm/packet mode configuration registers...................................................................... .......... 26 table 6-2. ds3/e3 atm/packet?ohm mode configurat ion registers.................................................................. .. 27 table 6-3. ds3/e3 internal fractional (ifrac) atm/packet mode configuration registers ................................... 28 table 6-4. ds3/e3 external fractional (xfrac ) atm/packet mode configuration registers................................. 29 table 6-5. ds3/e3 flexible external fractiona l (subrate) mode confi guration registers........................................ 30 table 6-6. ds3/e3 g.751 plcp atm mode configuration registers .................................................................. .... 31 table 6-7. ds3/e3 g.751 plcp atm?ohm mode configuration registers .......................................................... 32 table 6-8. clear-channel atm/pa cket mode confi guration modes ................................................................... ...... 34 table 6-9. clear-channel atm/packet?ohm mode configuration registers......................................................... 35 table 6-10. clear-channel octet aligned atm/pa cket?ohm mode configuration registers ................................ 36 table 7-1. hdb3/b3zs/ami liu mode configuration registers ...................................................................... ......... 37 table 7-2. hdb3/b3zs/ami non-li u mode configuration registers .................................................................. ..... 39 table 7-3. uni line interface mode configuration registers..................................................................... ............... 40 table 7-4. uni line interface?ohm mode configuration registers................................................................. ....... 41 table 8-1. DS3184 short pin descriptions ....................................................................................... ......................... 42 table 8-2. detailed pin descriptions ........................................................................................... .............................. 47 table 9-1. configuration of global regist er settings ........................................................................... ..................... 94 table 9-2. configuration of port register settings ............................................................................. ....................... 94 table 10-1. liu enable table................................................................................................... ............................... 101 table 10-2. all possible clock sour ces based on mode and loopback.............................................................. ... 101 table 10-3. source selecti on of tlclk cl ock signal ............................................................................. ................ 102 table 10-4. source selection of tclkon (internal tx clock) ..................................................................... ............ 103 table 10-5. source selection of rclko clock signal (internal rx clock) ......................................................... .... 103 table 10-6. transmit line interface si gnal pin valid timi ng source select ...................................................... ..... 104 table 10-7. transmit framer pin signal timing source select .................................................................... .......... 105 table 10-8. receive line interface pin signal timing source select ............................................................. ........ 105 table 10-9. receive framer pin signal timing source select ..................................................................... .......... 106 table 10-10. reset and power-down sources ...................................................................................... ................. 109 table 10-11. clad io pin decode................................................................................................ .......................... 112 table 10-12. global 8 khz reference source table............................................................................... ................ 113 table 10-13. port 8 khz reference source table................................................................................. .................. 113 table 10-14. gpio global signals ............................................................................................... ........................... 114 table 10-15. gpio pin global mode select bits.................................................................................. ................... 114 table 10-16. gpio port alarm monitor select .................................................................................... .................... 115 table 10-17. loopbac k mode selections .......................................................................................... ...................... 117 table 10-18. line ais enable modes ............................................................................................. ......................... 121 table 10-19. payload (downs tream) ais en able modes ............................................................................. ........... 122 table 10-20. tsofin/tohmin input pin functions ................................................................................. ............... 123 table 10-21. tsern/tpohn/tf ohn input pin functions ............................................................................. ......... 123 table 10-22. tpdenin/tpohenn/tfohenin input pin functions ...................................................................... . 124 table 10-23. tsofon/tdenn/tpohsofn/ tfohenon output pin functions .................................................... 124 table 10-24. tclkon/tgclkn/tpohclkn output pin functions....................................................................... . 125 table 10-25. tpdatn input pin functions ........................................................................................ ...................... 125 table 10-26. tpdenon output pin functions ...................................................................................... .................. 125 table 10-27. rsern/rpohn output pin functions .................................................................................. ............. 126 table 10-28. rpdenin / rfohenin input pin functions............................................................................ ........... 126 table 10-29. rpdatn input pin functions ........................................................................................ ..................... 126 table 10-30. rsofon/rdenn/rpohsofn/rfohenon output pin functions................................................... 127 table 10-31. rclkon/rgclkn/rpoh clkn output pin functions ...................................................................... 1 27 table 10-32. framing mode select bits fm[5:0] .................................................................................. ................... 128 table 10-33. line mode se lect bits lm[2:0]..................................................................................... ....................... 134 table 10-34. c-bit ds3 frame overhead bit definitions.......................................................................... ............... 172 table 10-35. m23 ds3 frame overhead bit definitions ............................................................................ ............. 175 table 10-36. g.832 e3 fram e overhead bit definitions ........................................................................... .............. 180 table 10-37. payload lab el match status........................................................................................ ....................... 183
ds3181/ds3182/ds3183/DS3184 12 of 389 table 10-38. pseudorando m pattern generation................................................................................... ................. 197 table 10-39. repetitive pattern generation ..................................................................................... ....................... 197 table 10-40. transformer characteristics ....................................................................................... ........................ 202 table 10-41. recommended transformers.......................................................................................... ................... 203 table 11-1. global and test register address map ............................................................................... ................ 206 table 11-2. per-port register address map ...................................................................................... ..................... 206 table 12-1. global register bit map............................................................................................ ............................ 208 table 12-2. system interface bit map ........................................................................................... .......................... 208 table 12-3. port register bit map .............................................................................................. ............................. 209 table 12-4. bert register bit map .............................................................................................. .......................... 210 table 12-5. line register bit map .............................................................................................. ............................ 210 table 12-6. hdlc register bit map .............................................................................................. .......................... 211 table 12-7. feac register bit map .............................................................................................. .......................... 211 table 12-8. trail trace register bit map....................................................................................... .......................... 212 table 12-9. t3 register bit map................................................................................................ .............................. 213 table 12-10. e3 g.751 register bit map......................................................................................... ........................ 214 table 12-11. e3 g.832 register bit map......................................................................................... ........................ 214 table 12-12. clear-channel register bit map.................................................................................... ..................... 215 table 12-13. fractional register bit map ....................................................................................... ......................... 216 table 12-14. plcp register bit map............................................................................................. .......................... 216 table 12-15. fifo register bit map............................................................................................. ........................... 217 table 12-16. transmit cell processor register bit map .......................................................................... ............... 218 table 12-17. transmit packet processor register bit map ........................................................................ ............ 219 table 12-18. receive cell processor register bit map ........................................................................... ............... 219 table 12-19. receive packet processor register bit map ......................................................................... ............ 220 table 12-20. global register map............................................................................................... ............................ 221 table 12-21. transmit system interface register map ............................................................................ ............... 230 table 12-22. receive system interface register map ............................................................................. ............... 231 table 12-23. per-port common register map ...................................................................................... .................. 234 table 12-24. bert register map................................................................................................. ........................... 247 table 12-25. transmit side b3zs/hdb3 li ne encoder/decoder register map ..................................................... 254 table 12-26. receive side b3zs/hdb3 li ne encoder/decoder register map ...................................................... 255 table 12-27. transmit side hdlc register map ................................................................................... ................. 259 table 12-28. receive side hdlc register map .................................................................................... ................. 262 table 12-29. feac transmit side register map ................................................................................... ................. 266 table 12-30. feac receiv e side register map .................................................................................... ................. 268 table 12-31. transmit side tr ail trace register map............................................................................ ................. 271 table 12-32. trail trace rece ive side register map............................................................................. ................. 272 table 12-33. transmit ds3 framer register map .................................................................................. ................ 277 table 12-34. receive ds3 framer register map ................................................................................... ................ 279 table 12-35. transmit g.751 e3 framer register map ............................................................................. ............. 287 table 12-36. receive g.751 e3 framer register map .............................................................................. ............. 289 table 12-37. transmit g.832 e3 framer register map ............................................................................. ............. 293 table 12-38. receive g.832 e3 framer register map .............................................................................. ............. 297 table 12-39. transmit clea r-channel register map............................................................................... ................ 305 table 12-40. receive clea r-channel register map................................................................................ ................ 306 table 12-41. fractional transmit side register map ............................................................................. ................. 308 table 12-42. receive side register map ......................................................................................... ....................... 309 table 12-43. transmit side plcp register map ................................................................................... ................. 311 table 12-44. receive side plcp register map .................................................................................... ................. 315 table 12-45. transmit fifo register map ........................................................................................ ...................... 323 table 12-46. receive fifo register map ......................................................................................... ...................... 326 table 12-47. transmit cell processor register map.............................................................................. ................. 328 table 12-48. hec error mask .................................................................................................... ............................. 331 table 12-49. receive cell processor register map............................................................................... ................. 335 table 12-50. transmit packet processor register map............................................................................ .............. 345 table 12-51. receive packet processor register map............................................................................. .............. 350 table 13-1. jtag instruction codes ............................................................................................. .......................... 362
ds3181/ds3182/ds3183/DS3184 13 of 389 table 13-2. jtag id codes ...................................................................................................... .............................. 363 table 14-1. pin assignment breakdown ........................................................................................... ...................... 364 table 17-1. recommended dc operating co nditions ................................................................................ ............ 371 table 17-2. dc electric al characteristics ...................................................................................... .......................... 371 table 17-3. output pin drive ................................................................................................... ................................ 372 table 18-1. fractional port timing ............................................................................................. ............................. 375 table 18-2. line interface timing .............................................................................................. .............................. 375 table 18-3. miscell aneous pin timing........................................................................................... .......................... 376 table 18-4. overhead port timing ............................................................................................... ........................... 376 table 18-5. system interface l2 timing......................................................................................... ......................... 377 table 18-6. system interface l3 timing......................................................................................... ......................... 378 table 18-7. micro interface timing ............................................................................................. ............................. 379 table 18-8. ds3 waveform template .............................................................................................. ....................... 382 table 18-9. ds3 waveform te st parameters and limits ............................................................................ ............ 382 table 18-10. sts-1 waveform template........................................................................................... ..................... 383 table 18-11. sts-1 waveform test parameters and limits......................................................................... .......... 383 table 18-12. e3 waveform te st parameters and limits............................................................................ ............. 384 table 18-13. receiver input characteristics?ds3 and cc52 modes................................................................. ... 386 table 18-14. receiver input characteristics?e3 mode ............................................................................ ............. 387 table 18-15. transmitter output c haracteristics?ds 3 and sts- 1 modes............................................................ 387 table 18-16. transmitter output characteristics?e3 mode........................................................................ ........... 387 table 18-17. jtag interface timing............................................................................................. ........................... 388
ds3181/ds3182/ds3183/DS3184 14 of 389 1 block diagrams figure 1-1 shows the external components required at each liu interface for proper operation. figure 1-2 shows the functional block diagram of one channel atm/packet phy. figure 1-1. liu external connections for a ds3/e3/sts-1 port of a ds318x device 1:2ct 1:2ct transmit receive txp txn rxp rxn 0.01uf 3.3v power plane ground plane vdd each t3/e3 liu if 0.1uf 1uf 330  (1%) 330  (1%) 0.01uf 0.1uf 1uf 0.01uf 0.1uf 1uf vdd vdd vss vss vss figure 1-2. ds318x functional block diagram tpohsofn/tsofon/ tdenn\tfohenon rlclkn rxpn rxnn tposn/ tdatn tnegn/ tohmon/ tlclkn ds3/e3 transmit liu ieee p1149.1 jtag test access port d[15:0] a[10:1] ale cs rd / ds wr / r/ w microprocessor interface jtdo jtclk jtms jtdi jtrst hdlc feac txpn txnn llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer tx cell processor tx fifo system interface rx cell processor rx fifo rohn rohclkn rohsofn tohn tohclkn tohsofn tclkin tx packet processor rpohn/rsern rpohclkn/ rclkon/ rpohsofn/rsofon/ rdenn/ rfohenon tsclk tadr[4:0] tdata[31:0] tprty ten tdxa[4:2] tsox teop tspa tsx tmod[1:0] terr rsclk radr[4:0] rdata[31:0] rprty ren rdxa[1]/rpxa rdxa[4:2] rsox reop rval rmod[1:0] rerr slb rx packet processor ds3/e3 receive liu tais tua1 tx frac/ plcp rx frac/ plcp tohenn clock rate adapter tx bert rx bert clka clkb clkc rfohenin/ mode int gpio[8:1] width rdy tpohclkn/ tclkon/tgclkn plb alb tohmin/tsofin ua1 gen tpohn/tfohn/tsern tpohenn/ tfohenin/ tpdenin tpdenon tpdatn rdatn rposn/ rnegn/ rlcvn/ rohmin rpdenin rst rpdatn rgclkn a[0]/bswap tdxa[1]/tpxa /rsx b3zs/ hdb3 encoder b3zs/ hdb3 decoder n = port # (1-4) ds318x
ds3181/ds3182/ds3183/DS3184 15 of 389 2 applications  access concentrators  multiservice access platforms  atm and frame relay equipment  routers and switches  sonet/sdh adm  sonet/sdh muxes  pbxs  digital cross connect  pdh multiplexer/demultiplexer  test equipment  integrated access device (iad) figure 2-1 and figure 2-2 show applications for the DS3184 as four-port unchannelized atm and packet ds3/e3 line cards, respectively. figure 2-1. four-port unchannelized atm over ds3/e3/cc52 line card typical atm line card typical atm line card ds3/e3 line utopia pos - 2/3 ds3154 #1 4-chan ds3/e liu ds3164 #1 4-chan ds3/e atm ph at switch card (s/w+ igr/egr mgt) oc-12 at sa r ds3/e3 line ds3154 #3 4-chan ds3/e liu ds3164 #3 4-chan ds3/e atm ph utopia pos- phy 2/3 x ds3/e3 line - ds315x #1 4-chan ds3/e3 liu ds316x #1 4-chan ds3/e3 atm phy atm switch card (s/w+ igr/egr mgt) oc- n atm sa r x ds3/e3 line ds315x #3 4-chan ds3/e3 liu ds316x #3 4-chan ds3/e3 atm phy pos- ds318x x = 1, 2, 3, 4 phy
ds3181/ds3182/ds3183/DS3184 16 of 389 figure 2-2. four-port unchannelized hdlc over ds3/e3/cc52 line card typical packet line card typical packet line card ds3/e3 line utopia pos- phy 2/3 ds3154 #1 4- chan ds3/e liu ds3164 #1 4- chan ds3/e atm ph at switch card (s/w+ igr/egr mgt) oc-12 at sa r ds3/e3 line ds3154 #3 4- chan ds3/e liu ds3164 #3 4- chan ds3/e atm ph utopia pos- phy 2/3 x ds3/e3 line pos- ds315x #1 4- chan ds3/e3 liu ds316x #1 4- chan ds3/e3 pkt phy ip/pkt switch card (s/w+ igr/egr mgt) oc- n pos sa r x ds3/e3 line ds315x #3 4- chan ds3/e3 liu ds316x #3 4- chan ds3/e3 phy pos- ds318x x = 1, 2, 3, 4
ds3181/ds3182/ds3183/DS3184 17 of 389 3 feature details the following sections describe the features provided by the ds3181 (single), ds3182 (dual), ds3183 (triple), and DS3184 (quad) phys. 3.1 global features  system interface configurable for utopia l2/utopia l3 for atm cell traffic or pos-phy l2/pos-phy l3 or spi-3 for hdlc packets or mixed packet/cell traffic  supports the following transmission protocols:  direct-mapped atm over ds3 or sub-rate ds3  plcp-mapped atm over ds3  direct-mapped atm over g.751 e3 or sub-rate g.751 e3  plcp-mapped atm over g.751 e3  direct-mapped atm over g.832 e3 or sub-rate g.832 e3  bit or byte synchronous (octet aligned) direct-mapped atm over externally-defined frame formats up to 52 mbps  clear-channel atm (cell-based physical layer) at line rates up to 52 mbps  clear-channel atm dss at line rates up to 52 mbps  direct-mapped hdlc over ds3 or sub-rate ds3  direct-mapped hdlc over g.751 e3 or sub-rate g.751 e3  direct-mapped hdlc over g.832 e3 or sub-rate g.832 e3  bit or byte synchronous (octet aligned) direct-mapped hdlc over externally-defined frame formats up to 52 mbps  clear-channel hdlc at line rates up to 52 mbps  in utopia bus mode, ports are independently configurable for any atm protocol  in pos-phy bus mode, ports are independently configurable for any atm or hdlc protocol  programmable to support internally or externally controlled sub-rate ds3 or e3 on any ports  supports gapped 52 mhz clock rates for signals embedded in sonet/sdh  optional transmit loop timed clock(s) mode using the associated port?s receive clock(s)  optional transmit clock mode using references generated by the internal clock rate adapter (clad)  requires only a single reference clock for all three liu data rates using internal clad  the liu can be powered down and bypassed for direct logic io to/from line circuits.  jitter attenuator can be placed in either transmit or receive path when the liu is enabled.  clock, data and control signals can be inverted for a direct interface to many other devices  detection of loss of transmit clock and loss of receive clock  automatic one-second, external or manual update of performance monitoring counters  each port can be placed into a low-power standby mode when not being used  framing and line code error insertion available 3.2 receive ds3/e3/sts-1 liu features  agc/equalizer block handles from 0 db to 15 db of cable loss  loss-of-lock pll status indication  interfaces directly to a dsx monitor signal (20 db flat loss) using built-in pre-amp  digital and analog loss of signal (los) detectors (ansi t1.231 and itu g.775)  per-channel power-down control 3.3 receive ds3/e3 framer features  frame synchronization for m23 or c-bit parity ds3, or g.751 e3 or g.832 e3  b3zs/hdb3/ami decoding  detection and accumulation of bipolar violations (bpv), code violations (cv), excessive zeroes occurrences (exz), f-bit errors, m-bit errors, fas errors, lof occurrences, p-bit parity errors, cp-bit parity errors, bip-8 errors, and far end block errors (febe)
ds3181/ds3182/ds3183/DS3184 18 of 389  detection of rdi, ais, ds3 idle signal, loss of signal (los), severely errored framing event (sefe), change of frame alignment (cofa), receipt of b3zs/hdb3 code words, ds3 application id bit, ds3 m23/c-bit format mismatch, g.751 national bit, and g.832 rdi (ferf), payload type, and timing marker bits  hdlc port for ds3 path maintenance data link (pmdl), g.751 national bit or g.832 nr or gc channels  feac port for ds3 feac channel  16-byte trail trace buffer port for g.832 trail access point identifier  ds3 m23 c bits and stuff bits configurable as payload or overhead, stored in registers for software inspection  most framing overhead fields presented on the receive overhead port  support for internal and external subrate ds3/e3 control (fractional ds3/e3) 3.4 receive plcp framer features  plcp frame synchronization  c1 cycle/stuff counter interpretation  detection of out of frame (oof), bip-8 errors, febe and rai (yellow signal)  frame timing can be presented on the gpio2 output pin or used as the transmit plcp reference  all path overhead fields presented on the plcp receive overhead port  hdlc port for data link messages on f1, m1 or m2 bytes  trail trace port for trace messages on f1 byte 3.5 receive cell processor features  hec-based cell delineation within the ds3/e3 frame, the plcp frame, an externally defined frame, or the entire line bandwidth  cell descrambling using the self-synchronizing scrambler (x 43 +1) for atm over ds3/e3  distributed sample scrambler (dss) for clear-channel atm (cell-based physical layer)  hec error detection and correction; hec discard  filtering of idle, unassigned and/or invalid cells (provisionable)  header pattern comparison vs. 32-bit header pattern and mask registers; counting of matching or non- matching cells; discard of matching or non-matching cells  four-cell receive fifo  controls include enables/disables/settings for: cell processing, coset polynomial addition, error correction, erred cell extraction, cell descrambling, idle/unassigned/invalid cell filtering, header pattern match counting/discarding, lcd integration time  status fields include: out of cell delineation (ocd), loss of cell delineation (lcd) and receipt of idle, unassigned, invalid, erred, corrected or header-pattern-match cells  performance monitoring counters for forwarded cells, corrected cells, uncorrectable cells, header pattern match/no-match cells, and filtered idle/unassigned/invalid cells  octet alignment option for externally defined frame formats 3.6 receive packet processor features  packet descrambling using the self-synchronizing scrambler (x 43 +1)  flag detection, packet delineation, and inter-frame fill discard (flags and all-ones)  packet abort detection and accumulation  bit or octet destuffing  fcs checking (16-bit or 32-bit), error accumulation, and fcs discard  packet size checking vs. programmable minimum and maximum size registers  abort declaration for packets with non-integral number of bytes  controls include enables/disables/settings for: packet processing, descrambling, 16/32-bit fcs, filtering of fcs erred packets, fcs discard, minimum/maximum packet size  status fields include: receipt of fcs erred packet, aborted packet, size violation packet, non-integer-length packets  performance monitoring counters for forwarded packets, forwarded bytes, aborted bytes, fcs erred packets, aborted packets, size violation packets (min, max, non-integer-length)  octet alignment with octet destuffing option for externally defined frame formats
ds3181/ds3182/ds3183/DS3184 19 of 389 3.7 receive fifo features  storage capacity for four cells or 256 bytes of packet data per port  programmable port address  programmable fill level thresholds  underflow and overflow status indications 3.8 receive system interface features  utopia l2 / utopia l3 interface in cell mode, pos-phy l2 / pos-phy l3 or spi-3 interface in packet or mixed traffic modes  8, 16, or 32-bit data bus at clock rates from 10 mhz to 66 mhz (52 mhz in l2 modes)  polled and direct cell available outputs  controls include enables/disables/settings for: hec transfer, signal inversions, parity enable/polarity, cell available deassertion time 3.9 transmit system interface features  utopia l2 / utopia l3 interface in cell mode, pos-phy l2 / pos-phy l3 or spi-3 interface in packet or mixed traffic modes  8, 16, or 32-bit data bus at clock rates from 10 mhz to 66 mhz (52 mhz in l2 modes)  polled and direct cell available outputs  controls include enables/disables/settings for: hec transfer, signal inversions, parity enable/polarity, cell available deassertion time 3.10 transmit fifo features  storage capacity for four cells or 256 bytes of packet data per port  programmable port address  programmable fill level thresholds  underflow and overflow status indications 3.11 transmit cell processor features  programmable fill cell type  hec calculation and insertion/overwrite, including coset addition  cell scrambling using the self-synchronizing scrambler (x 43 +1) for atm over ds3/e3  distributed sample scrambler (dss) for clear-channel atm (cell-based physical layer)  single-bit and multiple-bit header error insertion for diagnostics  controls include enables/disables/settings for: cell processing, hec insertion, coset polynomial addition, cell scrambling, fill cell type, error insertion type/rate/count, hec bit corruption  counter for number of cells read from the transmit fifo  cell mapping into the ds3/e3 frame, the plcp frame, an externally defined frame, or the entire line bandwidth  octet alignment option for externally defined frame formats 3.12 transmit packet processor features  fcs calculation (16-bit or 32-bit) and insertion/overwrite  programmable fcs error insertion for diagnostics  bit or octet stuffing  programmable inter-frame fill insertion (flags or all-ones)  automatic packet abort insertion  packet scrambling using the self-synchronizing scrambler (x 43 +1)  controls include enables/disables/settings for: packet processing, fcs insertion or overwrite, 16/32-bit fcs, inter-frame fill type/length, scrambling, fcs error insertion type/rate/count  counters for number of packets and bytes read from the transmit fifo  octet alignment with octet stuffing option for externally defined frame formats
ds3181/ds3182/ds3183/DS3184 20 of 389 3.13 transmit plcp formatter features  insertion of fas bytes (a1, a2), path overhead identification (poi) bytes, and path overhead bytes  generation of bip-8 (b1), febe and rai (g1)  c1 cycle/stuff counter generation referenced to gpio4 input pin, referenced to the received plcp timing, or based on an 8 khz division of one of the clock sources  automatic or manual insertion of fas errors, bip-8 errors  all path overhead fields can be sourced from the plcp transmit overhead port  hdlc port for data link messages on f1, m1 or m2 bytes  trail trace port for trace messages on f1 byte 3.14 transmit ds3/e3 formatter features  insertion of framing overhead for m23 or c-bit parity ds3, or g.751 e3 or g.832 e3  b3zs/hdb3 encoding  generation of rdi, ais, and ds3 idle signal  automatic or manual insertion of bipolar violations (bpvs), excessive zeroes (exz) occurrences, f-bit errors, m-bit errors, fas errors, p-bit parity errors, cp-bit parity errors, bip-8 errors, and far end block errors (febe)  hdlc port for ds3 path maintenance data link (pmdl), g.751 national bit or g.832 nr or gc channels  feac port for ds3 feac channel can be configured to send one codeword, one codeword continuously, or two different code words back-to-back to send ds3 line loopback commands  16-byte trail trace buffer port for the g.832 trail access point identifier  insertion of g.832 payload type, and timing marker bits from registers  ds3 m23 c bits configurable as payload or overhead; as overhead they can be controlled from registers or the transmit overhead port  most framing overhead fields can be sourced from transmit overhead port  formatter bypass mode for clear-channel or externally defined format applications  support for subrate ds3/e3, internally or externally controlled (fractional ds3/e3) 3.15 transmit ds3/e3/sts-1 liu features  wide 50+ 20% transmit clock duty cycle  line build-out (lbo) control  tri-state line driver outputs support protection switching applications  per-channel power-down control  output driver monitor status indication 3.16 jitter attenuator features  fully integrated and requiring no external components  can be placed in transmit or receive path  fifo depth of 16 bits  standard compliant transmission jitter and wander 3.17 clock rate adapter features  generation of the internally needed ds3 (44.736 mhz), e3 (34.368 mhz), and sts-1 (51.84 mhz) clocks a from single input reference clock  input reference clock can be 51.84 mhz, 44.736mhz or 34.368 mhz  internally derived clocks can be used as references for liu and jitter attenuator  derived clocks can be transmitted off-chip for external system use  standards compliant jitter and wander requirements. 3.18 hdlc overhead controller features  each port has a dedicated hdlc controller for ds3/e3 framer or plcp link management  256-byte receive and transmit fifos  handles all of the normal layer 2 tasks including zero stuffing/destuffing, fcs generation/checking, abort generation/checking, flag generation/detection, and byte alignment
ds3181/ds3182/ds3183/DS3184 21 of 389  programmable high and low water marks for the transmit and receive fifos  terminates the path maintenance data link in ds3 c-bit parity mode and optionally the g.751 sn bit or the g.832 nr or gc channels or plcp f1, m1 or m2 bytes  rx data is forced to all ones during los, lof and ais detection to eliminate false packets 3.19 feac controller features  each port has a dedicated feac controller for ds3/e3 link management  designed to handle multiple feac code words without host intervention  receive feac automatically validates incoming code words and stores them in a 4-byte fifo  transmit feac can be configured to send one codeword, one codeword continuously, or two different code words back-to-back to send ds3 line loopback commands  terminates the feac channel in ds3 c-bit parity mode and optionally the sn bit in e3 mode 3.20 trail trace buffer features  each port has a dedicated trail trace buffer for e3-g.832 or ds3/e3 plcp link management  extraction and storage of the incoming g.832 or plcp trail access point identifier in a 16-byte receive register  insertion of the outgoing trail access point identifier from a 16-byte transmit register  receive trace identifier unstable status indication 3.21 bit error rate tester (bert) features  each port has a dedicated bert tester  generation and detection of pseudo-random patterns and repetitive patterns from 1 to 32 bits in length  pattern insertion/extraction in plcp payload, ds3/e3 payload, ds3/e3 fractional payload or entire data stream to and from the line interface  large 24-bit error counter allows testing to proceed for long periods without host intervention  errors can be inserted in the generated bert patterns for diagnostic purposes (single bit errors or specific bit- error rates) 3.22 loopback features  analog interface loopback ? alb (transmit to receive)  line facility loopback ? llb (receive to transmit) with optional transmission of unframed all-one ais payload toward system/trunk interface  framer diagnostic loopback ? dlb (transmit to receive) with automatic transmission of ds3 ais or unframed all-one ais signal toward line/tributary interface(s)  ds3/e3 framer payload loopback ? plb (receive to transmit) with optional transmission of unframed all-one ais payload toward system/trunk interface  system interface loopback ? slb (transmit to receive)  simultaneous line facility loopback and framer diagnostic loopback 3.23 microprocessor interface features  multiplexed or non-multiplexed address bus modes  8 or 16-bit data bus modes  byte swapping option in 16-bit data bus mode  read/write and data strobe modes  ready handshake output signal  global reset input pin  global interrupt output pin  two programmable i/o pins per port 3.24 subrate features (fractional ds3/e3)  independent per-port built-in support for subrate ds3 or e3  independent subrate operation for both rx and tx data paths
ds3181/ds3182/ds3183/DS3184 22 of 389  subrate operation for each channel is totally independent from the other channels? operation, i.e. all subrate functions within the device are mutually exclusive  three distinct subrate algorithms:  (ffrac) externally controlled with ds3 or e3 payload manipulating capability  (xfrac) externally controlled with flexible ds3 or e3 data rate reduction capability  (ifrac) internally controlled with simple ds3 or e3 data rate reduction capability  subrate algorithm selection is on per-port basis  internal subrate mechanism allows down to bit-level granularity of the ds3 or e3 payload 3.25 test features  five pin jtag port  all functional pins are in/out pins in jtag mode  standard jtag instructions: sample/preload, bypass, extest, clamp, highz, idcode  ram bist on all internal ram  high-z pin to force all digital output and in/out pins into hiz  test pin for manufacturing scan test modes
ds3181/ds3182/ds3183/DS3184 23 of 389 4 standards compliance table 4-1. standards compliance specification specification title ansi t1.102-1993 digital hierarchy ? electrical interfaces t1.107-1995 digital hierarchy ? formats specification t1.231-1997 digital hierarchy ? layer 1 in-service digital transmission performance monitoring t1.404-1994 network-to-customer installation ? ds3 metallic interface specification t1.646-1995 broadband isdn ? physical layer specification for user-network interfaces including ds1/atm atm forum af-phy-0034.000 e3 public uni, august, 1995 af-phy-0039.000 utopia level 2, version 1.0, june, 1995 af-phy-0043.000 a cell-based transmission convergence sublayer for clear-channel interfaces, november, 1995 af-phy-0054.000 ds3 physical layer interface specification, january, 1996 af-phy-0136.000 utopia l3 physical layer interface, november, 1999 af-phy-0143.000 frame-based atm interface (level 3), march, 2000 af-bici-0013.003 bisdn inter carrier interface (b-ici) specification version 2.0 (integrated), december, 1995 etsi ets 300 686 business telecommunications; 34mbps and 140mbits/s digital leased lines (d34u, d34s, d140u and d140s); network interface presentation, 1996 ets 300 337 transmission and multiplexing (tm); generic frame structures for the transport of various signals (including asynchronous transfer mode (atm) cells and synchronous digital hierarchy (sdh) elements) at the itu-t recommendation g.702 hierarchical rates of 2 048 kbit/s, 34 368 kbit/s and 139 264 kbit/s , second edition, june, 1997 ets en 300 689 access and terminals (at); 34mbps digital leased lines (d34u and d34s); terminal equipment interface, july 2001 ets 300 689 business telecommunications (btc); 34 mbps digital leased lines (d34u and d34s), terminal equipment interface , v 1.2.1, 2001-07 ietf rfc 1661 the point-to-point protocol (ppp) , july, 1994 rfc 1662 ppp in hdlc-like framing , july, 1994 rfc 2496 definition of managed objects for the ds3/e3 interface type , january, 1999 iso iso 3309:1993 information technology ? telecommunication s & information exc hange betwe en systems ? high level data link control (hdlc) procedures ? frame structure , fifth edition, 1993 itu-t g.703 physical/electrical characteristics of hierarchical digital interfaces, 1991 g.704 synchronous frame structures used at 1544, 6312, 2048, 8488 and 44 736 kbit/s hierarchical levels, july, 1995 g.751 digital multiplex equipment operating at the third order bit rate of 34,368 kbit/s and the fourth order bit rate of 139,264 kbit/s and using positive justification, 1993 g.775 loss of signal (los) and alarm indication signal (ais) defect detection and clearance criteria, november, 1994 g.804 atm cell mapping into plesiochronous digital hierarchy (pdh), november, 1993 g.823 the control of jitter and wander within digital networks which are based on the 2048 kbit/s hierarchy , 1993
ds3181/ds3182/ds3183/DS3184 24 of 389 specification specification title g.824 the control of jitter and wander within digital networks that are based on the 1544kbps hierarchy , 1993 g.832 transport of sdh elements on pdh networks ? frame and multiplexing structures, november, 1995 i.432 b-isdn user-network interface ? physical layer specification, march, 1993 o.151 error performance measuring equipment operating at the primary rate and above, october, 1992 q.921 isdn user-network interface ? data link layer specification , march 1993 oif oif-spi3-01.0 system packet interface level 3 (spi-3): oc-48 system interface for physical and link layer devices saturn? group pos-phy l2 pos-phy level 2 packet over sonet interface specification for physical layer devices, december, 1998 pos-phy l3 pos-phy level 3 packet over sonet interface specification for physical and link layer devices, june, 2000 telcordia gr-253-core sonet transport systems: common generic criteria , issue 2, december 1995 gr-499-core transport systems generic requirements (tsgr): common requirements, issue 2, december 1998 gr-820-core generic digital transmission surveillance , issue 1, november 1994 ieee ieee std 1149- 1990 ieee standard test access port and boundary-scan architecture, (includes ieee std 1149-1993) october 21, 1993 saturn is a registered trademark of pmc-sierra, inc.
ds3181/ds3182/ds3183/DS3184 25 of 389 5 acronyms and glossary definition of the terms used in this datasheet: acronyms  atm ? asynchronous transfer mode  cc52 ? clear-channel 52 mbps (sts-1 clock rate)  clad ? clock rate adapter  clr ? clear-channel mode  dss ? distributed sample scrambler  ffrac ? flexible fractional mode  frm ? frame mode  hdlc ? high level data link control  ifrac ? internal fractional mode  ohm ? overhead mask mode (liu disabled) for externally defined framing  plcp ? physical layer convergence protocol  spi-3 ? same as pos-phy l3  xfrac ? external fractional mode glossary  cell ? atm cell  clear-channel ? a datastream with no framing included  fractional ? uses only a portion of available payload for data, also known as subrate  octet aligned ? byte aligned  packet ? hdlc packet  subrate ? see fractional  unchannelized ? see clear-channel
ds3181/ds3182/ds3183/DS3184 26 of 389 6 major operational modes the major operational modes are determined by the fm[5:0] framer mode bits and a few other control bits. unused features are powered down and the data paths are held in reset. the configuration registers of the unused features can be written to and read from. the function of some io pins change in different operational modes. the line interface operational mode is determined by the lm[2:0] bits. 6.1 ds3/e3 atm/packet mode ds3/e3 atm/packet mode is a normal mode of operation for the ds318x device, which maps/demaps atm cells or packet data into a ds3 or e3 data stream via the selected mapping mode. major functional blocks for the ds3/e3 atm/packet mode are shown in figure 6-1 . mapping configuration is programmable on per-port basis and is shown in table 6-1 . table 6-1. ds3/e3 atm/packet mode configuration registers mode fm[5:0] sim[1:0] gl.cr1 pmcpe port.cr2 utopia l2 atm 0xx000 00 x utopia l2 atm 0xx000 01 x pos-phy l2 atm 0xx000 10 1 pos-phy l3 atm 0xx000 11 1 pos-phy l2 packet 0xx000 10 0 pos-phy l3 packet 0xx000 11 0 figure 6-1. ds3/e3 atm/packet mode rlclkn rxpn rxnn tposn/ tdatn tnegn/ tohmon/ tlclkn ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac txpn txnn llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer tx cell processor tx fifo system interface rx cell processor rx fifo rohn rohclkn rohsofn tohn tohclkn tohsofn tclkin tx packet processor slb rx packet processor ds3/e3 receive liu tais tua1 tohenn clock rate adapter tx bert rx bert clka clkb clkc plb alb tsofin ua1 gen rdatn rposn/ rnegn/ rlcvn/ rohmin rst b3zs/ hdb3 encoder b3zs/ hdb3 decoder rclkon/ rgclkn tclkon/ tgclkn n = port # (1-4)
ds3181/ds3182/ds3183/DS3184 27 of 389 6.2 ds3/e3 atm/packet?ohm mode ds3/e3 atm/packet?ohm mode is a normal mode of operation for the ds318x devices, which maps/demaps atm cells or packet data into a ds3 or e3 data stream, supporting externally defined framing protocols. major functional blocks for the ds3/e3 atm/packet?ohm mode are shown in figure 6-2 . mapping configuration is programmable on per-port basis and is shown in table 6-2 . table 6-2. ds3/e3 atm/packet?ohm mode configuration registers mode fm[5:0] sim[1:0] gl.cr1 pmcpe port.cr2 utopia l2 atm 0xx001 00 x utopia l2 atm 0xx001 01 x pos-phy l2 atm 0xx001 10 1 pos-phy l3 atm 0xx001 11 1 pos-phy l2 packet 0xx001 10 0 pos-phy l3 packet 0xx001 11 0 figure 6-2. ds3/e3 atm/packet?ohm mode rlclkn rdatn rohmin tohenn tdatn tohmon tlclkn ieee 1149.1 jtag test access port rst microprocessor interface hdlc feac llb dlb ds3/e3 transmit formatter ds3/e3 receive framer tx cell processor tx fifo system interface rx cell processor rx fifo rohn rohclkn rohsofn tohn tohclkn tohsofn tclkin slb tua1 clock rate adapter tx bert rx bert clka clkb clkc tohmin tclkon/tgclkn tx packet processor tx packet processor trail trace ua1 gen rclkon/rgclkn n = port # (1-4) analog loopback
ds3181/ds3182/ds3183/DS3184 28 of 389 6.3 ds3/e3 internal fractional (subrate) atm/packet mode ds3/e3 internal fractional mode allows subrate datastreams to be inserted into a ds3 or e3 line, with the fractional overhead internally controlled. major functional blocks for the ds3/e3 internal fractional mode are shown in figure 6-3 . mapping configuration is programmable on per-port basis and is shown in table 6-3 . the ?-ohm? modes are not allowed in fractional framing modes since the user is not able to distinguish between internal framing overhead and external framing overhead bit locations. table 6-3. ds3/e3 internal fractional (ifrac) atm/packet mode configuration registers mode fm[5:0] sim[1:0] gl.cr1 pmcpe port.cr2 utopia l2 atm 0xx010 00 x utopia l2 atm 0xx010 01 x pos-phy l2 atm 0xx010 10 1 pos-phy l3 atm 0xx010 11 1 pos-phy l2 packet 0xx010 10 0 pos-phy l3 packet 0xx010 11 0 figure 6-3. ds3/e3 internal fractional atm/packet mode rlclkn rxpn rxnn tposn/ tdatn tnegn/ tohmon/ tlclkn ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac txpn txnn llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer tx cell processor tx fifo system interface rx cell processor rx fifo rohn rohclkn rohsofn tohn tohclkn tohsofn tclkin tx packet processor slb rx packet processor ds3/e3 receive liu tais tua1 tohenn clock rate adapter tx bert rx bert clka clkb clkc plb alb tohmin/tsofin ua1 gen rdatn rposn/ rnegn/ rlcvn/ rohmin rst b3zs/ hdb3 encoder b3zs/ hdb3 decoder rx frac rclkon/rgclkn rsern rfohenon tx frac tfohenon tfohn tclkon/tgclkn n = port # (1-4)
ds3181/ds3182/ds3183/DS3184 29 of 389 6.4 ds3/e3 external fractional (subrate) atm/packet mode ds3/e3 external fractional mode allows subrate datastreams to be inserted into a ds3 or e3 line, with the fractional overhead externally controlled. major functional blocks for the ds3/e3 internal fractional mode are shown in figure 6-4 . mapping configuration is programmable on per-port basis and is shown in table 6-4 . the ?-ohm? modes are not allowed in fractional framing modes since the user cannot distinguish between internal framing overhead and external framing overhead bit locations. table 6-4. ds3/e3 external fractional (xfrac) atm/packet mode configuration registers mode fm[5:0] sim[1:0] gl.cr1 pmcpe port.cr2 utopia l2 atm 0xx011 00 x utopia l2 atm 0xx011 01 x pos-phy l2 atm 0xx011 10 1 pos-phy l3 atm 0xx011 11 1 pos-phy l2 packet 0xx011 10 0 pos-phy l3 packet 0xx011 11 0 figure 6-4. ds3/e3 external fractional atm/packet mode rlclkn rxpn rxnn tposn/ tdatn tnegn/ tohmon/ tlclkn ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac txpn txnn llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer tx cell processor tx fifo system interface rx cell processor rx fifo rohn rohclkn rohsofn tohn tohclkn tohsofn tclkin tx packet processor slb rx packet processor ds3/e3 receive liu tais tua1 tohenn clock rate adapter tx bert rx bert clka clkb clkc plb alb tohmin/tsofin ua1 gen rdatn rposn/ rnegn/ rlcvn/ rohmin rst b3zs/ hdb3 encoder b3zs/ hdb3 decoder rx frac rclkon/rgclkn rsern rsofon/rdenn tx frac tfohenon tfohn tclkon/tgclkn rfohenin tfohenin n = port # (1-4)
ds3181/ds3182/ds3183/DS3184 30 of 389 6.5 ds3/e3 flexible external fractiona l (subrate) mode configuration mode ds3/e3 flexible external fractional mode allows subrate datastreams to be inserted into a ds3 or e3 line, with the fractional overhead and payload externally multiplexed. major functional blocks for the ds3/e3 flexible external fractional mode are shown in figure 6-5 . mapping configuration is programmable on per-port basis and is shown in table 6-5 . the ?-ohm? modes are not allowed in fractional framing modes since the user cannot distinguish between internal framing overhead and external framing overhead bit locations. table 6-5. ds3/e3 flexible external fracti onal (subrate) mode c onfiguration registers mode fm[5:0] sim[1:0] gl.cr1 pmcpe port.cr2 utopia l2 atm 0xx110 00 x utopia l2 atm 0xx110 01 x pos-phy l2 atm 0xx110 10 1 pos-phy l3 atm 0xx110 11 1 pos-phy l2 packet 0xx110 10 0 pos-phy l3 packet 0xx110 11 0 figure 6-5. ds3/e3 flexible external fractional mode tsofon/tdenn rlclkn rxpn rxnn tposn/ tdatn tnegn/ tohmon tlclkn ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac txpn txnn llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer tx cell processor tx fifo system interface rx cell processor rx fifo rohn rohclkn rohsofn tohn tohclkn tohsofn tclkin tx packet processor rsern rsofon/rdenn rclkon/rgclkn slb rx packet processor ds3/e3 receive liu tais tua1 tohenn clock rate adapter tx bert rx bert clka clkb clkc tpdenin plb alb tsofin ua1 gen tclkon/ tgclkn tsern tpdenon tpdatn rdatn rposn/ rnegn/ rlcvn/ rohmin rpdenin rst* rpdatn b3zs/ hdb3 encoder b3zs/ hdb3 decoder n = port # (1-4)
ds3181/ds3182/ds3183/DS3184 31 of 389 6.6 ds3/e3 g.751 plcp atm mode ds3/e3 g.751 plcp atm mode is a normal mode of operation for the ds318x devices, which maps/demaps atm cells into/from the ds3/e3 plcp data stream. major functional blocks for the ds3/e3 atm/packet mode are shown in figure 6-6 . mapping configuration is programmable on per-port basis and is shown in table 6-6 . the pmcpe configuration bit is ignored when in plcp mode and atm cell processing is forced. table 6-6. ds3/e3 g.751 plcp at m mode configuration registers mode fm[5:0] sim[1:0] gl.cr1 pmcpe port.cr2 utopia l2 atm 0xx100 00 x utopia l2 atm 0xx100 01 x pos-phy l2 atm 0xx100 10 1 pos-phy l3 atm 0xx100 11 1 pos-phy l2 packet 0xx100 10 0 pos-phy l3 packet 0xx100 11 0 figure 6-6. ds3/e3 g.751 plcp atm mode tohenn tsofin tpohenn tpohsofn ieee 1149.1 jtag test access port rst microprocessor interface hdlc feac tx cell processor tx fifo system interface rx cell processor rx fifo rohn rohclkn rohsofn tohn tohclkn tohsofn tclkin slb tx plcp rx plcp tx bert rx bert clka clkb clkc rpohn rpohclkn/rclkon rpohsofn tpohn trail trace ua1 gen rlclkn rxpn rxnn tposn/ tdatn tnegn/ tohmon/ tlclkn ds3/e3 transmit liu txpn txnn llb dlb ds3/e3 receive liu tais tua1 clock rate adapter alb rdatn rposn/ rnegn/ rlcvn/ rohmin b3zs/ hdb3 encoder b3zs/ hdb3 decoder ds3 / e3 transmit formatter ds3 / e3 receive framer plb n = port # (1-4)
ds3181/ds3182/ds3183/DS3184 32 of 389 6.7 ds3/e3 g.751 plcp atm?ohm mode ds3/e3 g.751 plcp atm?ohm mode is a normal mode of operation for the ds318x devices, which maps/demaps atm cells into/from the ds3/e3 plcp data stream, supporting externally defined framing modes. major functional blocks for the ds3/e3 g.751 plcp atm?ohm mode are shown in figure 6-7 . mapping configuration is programmable on per-port basis and is shown in table 6-7 . the pmcpe configuration bit is ignored when in plcp mode and atm cell processing is forced. table 6-7. ds3/e3 g.751 plcp atm? ohm mode configuration registers mode fm[5:0] sim[1:0] pmcpe port.cr2 ds3 utopia l2 atm 0xx101 00 x ds3 utopia l3 atm 0xx101 01 x ds3 pos-phy l2 atm 0xx101 10 x ds3 pos-phy l3 atm 0xx101 11 x e3 g.751 utopia l2 atm 010101 00 x e3 g.751 utopia l3 atm 010101 01 x e3 g.751 pos-phy l2 atm 010101 10 x e3 g.751 pos-phy l3 atm 010101 11 x
ds3181/ds3182/ds3183/DS3184 33 of 389 figure 6-7. ds3/e3 g.751 plcp atm?ohm mode tohenn tpohenn tpohsofn tdatn tohmon tlclkn ieee 1149.1 jtag test access port microprocessor interface hdlc feac ds3/e3 transmit formatter ds3/e3 receive framer tx cell processor tx fifo system interface rx cell processor rx fifo rohn rohclkn rohsofn tohn tohclkn tohsofn tclkin slb tx plcp rx plcp clock rate adapter tx bert rx bert clka clkb clkc rpohn rpohclkn/rclkon rpohsofn tpohn tpohclkn/ tclkon rlclkn rdatn rohmin trail trace ua1 gen llb dlb tua1 n = port # (1-4) tohmin analog loopback
ds3181/ds3182/ds3183/DS3184 34 of 389 6.8 clear-channel atm/packet mode the clear-channel atm/packet mode maps/demaps atm cells or hdlc packets into/from a serial datastream, bypassing the ds3/e3 formatter/framer. major functional blocks for the clear-channel atm/packet mode are shown in figure 6-8 . mapping configuration is programmable on per-port basis and is shown in table 6-8 . table 6-8. clear-channel atm/packet mode configuration modes mode fm[5:0] sim[1:0] gl.cr1 pmcpe port.cr2 utopia l2 atm 1xx0x0 00 x utopia l2 atm 1xx0x0 01 x pos-phy l2 atm 1xx0x0 10 1 pos-phy l3 atm 1xx0x0 11 1 pos-phy l2 packet 1xx0x0 10 0 pos-phy l3 packet 1xx0x0 11 0 figure 6-8. clear-channel atm/packet modes rlclkn rxpn rxnn tposn/ tdatn tnegn/ tohmon/ tlclkn ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface txpn txnn llb dlb tx cell processor tx fifo system interface rx cell processor rx fifo tclkin tx packet processor slb rx packet processor ds3/e3 receive liu tais tua1 clock rate adapter tx bert rx bert clka clkb clkc plb alb ua1 gen rdatn rposn/ rnegn/ rlcvn/ rohmin rst b3zs/ hdb3 encoder b3zs/ hdb3 decoder rclkon/ rgclkn tclkon/ tgclkn n = port # (1-4)
ds3181/ds3182/ds3183/DS3184 35 of 389 6.9 clear-channel atm/packet?ohm mode the clear-channel atm/packet?ohm mode maps/demaps atm cells or hdlc packets into/from a serial datastream, bypassing both the ds3/e3 formatter/framer and the liu, supporting externally defined framing modes. major functional blocks for the clear-channel atm/ packet?ohm mode are shown in figure 6-9 . mapping configuration is programmable on per-port basis and is shown in table 6-9 . table 6-9. clear-channel atm/packet?ohm mode configuration registers mode fm[5:0] sim[1:0] gl.cr1 pmcpe port.cr2 utopia l2 atm 1xx001 00 x utopia l2 atm 1xx001 01 x pos-phy l2 atm 1xx001 10 1 pos-phy l3 atm 1xx001 11 1 pos-phy l2 packet 1xx001 10 0 pos-phy l3 packet 1xx001 11 0 figure 6-9. clear-channel atm/packet?ohm mode tclkin tclkon tdatn tohmon tlclkn ieee 1149.1 jtag test access port rst microprocessor interface llb dlb tx cell processor tx fifo system interface rx cell processor rx fifo slb tua1 clock rate adapter tx bert rx bert clka clkb clkc rlclkn rdatn rohmin tx packet processor rx packet processor ua1 gen rclkon n = port # (1-4) tohmin analog loopback
ds3181/ds3182/ds3183/DS3184 36 of 389 6.10 clear-channel octet aligned atm/packet?ohm mode the clear-channel octet aligned atm/packet?ohm mode maps/demaps atm cells or hdlc packets into/from a serial datastream, bypassing both the ds3/e3 formatter/framer and the liu, supporting arbitrary framing modes. major functional blocks for the clear-channel octet aligned atm/packet?ohm mode are shown in figure 6-10 . mapping configuration is programmable on per-port basis and is shown in table 6-10 . table 6-10. clear-channel octet aligned atm/packet?ohm mode configuration registers mode fm[5:0] sim[1:0] gl.cr1 pmcpe port.cr2 utopia l2 atm 1xx011 00 x utopia l2 atm 1xx011 01 x pos-phy l2 atm 1xx011 10 1 pos-phy l3 atm 1xx011 11 1 pos-phy l2 packet 1xx011 10 0 pos-phy l3 packet 1xx011 11 0 figure 6-10. clear-channel octet aligned atm/packet?ohm mode tclkin tclkon rst clock rate adapter clka clkb clkc parallel to serial serial to parallel rclkon llb dlb tua1 microprocessor interface tx cell processor tx fifo system interface rx cell processor rx fifo slb tx bert rx bert tx packet processor rx packet processor ieee 1149.1 jtag test access port ua1 gen tdatn tohmon tlclkn rlclkn rdatn rohmin n = port # (1-4) tohmin analog loopback
ds3181/ds3182/ds3183/DS3184 37 of 389 7 major line interface operating modes the line interface modes provide the following functions: 1. enabling/disabling of rx and tx liu. 2. enabling/disabling of jitter attenuator (ja). 3. selection of the location of ja, i.e. rx or tx path. 4. selection of the line coding type: i.e. b3zs/hdb3/ami or uni. 7.1 ds3hdb3/b3zs/ami liu mode when the ?- ohm? framing modes are enabled, the line interface is forced into the unipolar (uni) mode. the tzcds and rzcds bits in the line encoder/decoder block select between no encoding/decoding (ami) and encoding/decoding (b3zs, hdb3). when the hdb3/b3zs line decoder/encoder is enabled, the framing modes (fm bits) select between b3zs and hdb3 line coding. ds3 and cc52 frame modes select the b3zs line code while the e3 modes select the hdb3 line code. table 7-1. hdb3/b3zs/ami liu mode configuration registers mode lm[2:0] line.tcr . tzsd and line.rcr .rzsd tlen port.cr2 ja off, b3zs or hdb3 001 0 0 ja rx, b3zs or hdb3 010 0 0 ja tx, b3zs or hdb3 011 0 0 ja off, ami 001 1 0 ja rx, ami 010 1 0 ja tx, ami 011 1 0
ds3181/ds3182/ds3183/DS3184 38 of 389 figure 7-1. hdb3/b3zs/ami liu mode n = port # (1-4) rxpn rxnn txpn txnn llb dlb ds3/e3 receive liu tais tua1 clock rate adapter clka clkb clkc alb b3zs/ hdb3 encoder b3zs/ hdb3 decoder from framing logic or external pins to framing logic or external pins ds3/e3 transmit liu
ds3181/ds3182/ds3183/DS3184 39 of 389 7.2 hdb3/b3zs/ami non-liu line interface mode the non-liu line interface mode disables the liu and a digital representation of ami is output/input on the tposn/tnegn signals and the rposn/rnegn signals. selection between ami and hdb3/b3zs is made via the line.tcr register. hdb3 and b3zs selection is controlled by the configuration selected by the fm bits. ds3 and cc52 frame modes select the b3zs line code while the e3 modes select the hdb3 line code. the ds3ais signal can only be generated in non-ohm ds3 modes. table 7-2. hdb3/b3zs/ami non-liu mode configuration registers mode lm[2:0] line.tcr. tzsd and line.rcr .rzsd tlen port.cr2 liu off, b3zs or hdb3 000 0 1 liu off, ami 000 1 1 figure 7-2. hdb3/b3zs/ami n on-liu line interface mode n = port # (1-4) llb dlb tais tua1 clock rate adapter clka clkb clkc b3zs/ hdb3 encoder b3zs/ hdb3 decoder from framing logic or external pins to framing logic or external pins tposn tnegn tlclkn rlclkn rposn rnegn alb
ds3181/ds3182/ds3183/DS3184 40 of 389 7.3 uni line interface mode this mode is valid for all framing modes, providing a digital nrz input/output on rdatn and tdatn and clocked by rlclkn and tlclkn. the b3zs/hdb3 decoder/encoder block is disabled except for the bpv counter, which is used to count rlcv errors. table 7-3. uni line interface mode configuration registers mode lm[2:0] line.tcr. tzsd and line.rcr .rzsd tlen port.cr2 unipolar mode 1xx x 1 figure 7-3. uni line interface mode tdatn tlclkn n = port # (1-4) tua1 clock rate adapter clka clkb clkc rlclkn rdatn from framing logic or external pins to framing logic or external pins alb llb dlb
ds3181/ds3182/ds3183/DS3184 41 of 389 7.4 uni line interface?ohm mode the line interface is forced into uni mode when the framer is in any ohm mode; therefore, the lm bits are don?t cares. this mode is the same as the uni line interface mode except that the ohm pins determine whether the data is payload or not. table 7-4. uni line interface?ohm mode configuration registers mode fm[5:0] lm[2:0] line.tcr. tzsd and line.rcr .rzsd tlen port.cr2 ds3/e3 overhead mask mode 0xxx01 xxx x 1 clear-channel overhead mask mode 1xx0x1 xxx x 1 figure 7-4. uni line interface?ohm mode tdatn tohmon tlclkn n = port # line loopback framer diagnostic loopback tua1 clock rate adapter clka clkb clkc rlclkn rdatn rohmin from framing logic or external pins to framing logic or external pins tohmin alb
ds3181/ds3182/ds3183/DS3184 42 of 389 8 pin descriptions note: in jtag mode, all digital pins are bidirectional to increase the effectiveness of board-level atpg patterns for isolation of interconnect failures. 8.1 short pin descriptions table 8-1. DS3184 short pin descriptions n = 1,2,3,4 (port number). ipu (input with pullup), oz (output tri-stateable), (needs an external pullup or pulldown resistor t o keep from floating), oa (analog output), ia (analog input), io (bidirectional in/out). all unused input pins without pullup should be tied low. pin name type function port 4 port 3 port 2 port 1 line io tlclkn o transmit line clock output v11 c11 y8 a8 tposn / tdatn o transmit positive ami / data v14 c14 v4 c4 tnegn / tohmon o transmit negative ami / line oh mask w14 b14 u4 d4 txpn oa transmit positive analog w6 b6 m2 j2 txnn oa transmit negative analog y6 a6 m1 j1 rlclkn i receive clock input y12 a12 w8 b8 rxpn ia receive positive analog w5 b5 r2 f2 rxnn ia receive negative analog y5 a5 r1 f1 rposn / rdatn i positive ami / data w15 b15 y3 a3 rnegn / rlcvn / rohmin i negative ami / line code violation / line oh mask output y15 a15 w3 b3 ds3/e3 overhead interface tohn i transmit overhead u11 d11 u8 d8 tohenn i transmit overhead enable t14 e14 t5 e5 tohclkn o transmit overhead clock t11 e11 v8 c8 tohsofn o transmit overhead start of frame t12 e12 v7 c7 rohn o receive overhead t10 e10 u10 d10 rohclkn o receive overhead clock t13 e13 u5 d5 rohsofn o receive overhead start of frame u14 d14 y2 b2 ds3/e3 serial data, plcp and fractional ds3/e3 overhead interface tclkin i transmit line clock input y14 a14 w4 b4 tsofin / tohmin i transmit start of frame input / oh mask input u12 d12 w7 b7 tsern/ tpohn / tfohn/ i transmit serial data / plcp overhead / fractional overhead v13 c13 t6 e6 tpdenin / tpohenn / tfohenin i transmit payload data enable input / plcp overhead enable / fractional oh enable input u13 d13 v5 c5 tclkon / tgclkn / tpohclkn o transmit clock output / gapped clock / plcp overhead clock y13 a13 u7 d7 tsofon / tdenn / tpohsofn / tfohenon o transmit framer start of frame / data enable / plcp overhead start of frame / fractional oh enable output v12 c12 y7 a7 tpdenon o transmit payload data enable output w10 b10 y9 a9 tpdatn o transmit payload data v10 c10 w9 b9 rpdenin / rfohenin i receive payload data enable input / fractional overhead enable input w13 b13 u6 d6 rpdatn i receive payload data y10 a10 v9 c9 rsern / rpohn o receive serial data / plcp overhead w11 b11 t9 e9
ds3181/ds3182/ds3183/DS3184 43 of 389 pin name type function port 4 port 3 port 2 port 1 rclkon / rgclkn rpohclkn o receive / clock output / gapped clock / plcp overhead clock y11 a11 u9 d9 rsofon / rdenn / rpohsofn / rfohenon o receive framer start of frame / data enable / plcp overhead start of frame / fractional overhead enable output w12 b12 t8 e8 name type function pin utopia l2/l3 or pos-phy l2/3 or spi-3 system interface tsclk i transmit system clock j20 tadr[4] c15 tadr[3] d15 tadr[2] e15 tadr[1] a16 tadr[0] i transmit address [4:0] a18 tdata[31] u15 tdata[30] t15 tdata[29] u16 tdata[28] u17 tdata[27] d18 tdata[26] d17 tdata[25] c19 tdata[24] f20 tdata[23] e16 tdata[22] d16 tdata[21] c16 tdata[20] c18 tdata[19] c17 tdata[18] t17 tdata[17] t16 tdata[16] r17 tdata[15] v16 tdata[14] w17 tdata[13] y18 tdata[12] v17 tdata[11] w18 tdata[10] w19 tdata[9] b19 tdata[8] c20 tdata[7] w20 tdata[6] u18 tdata[5] v18 tdata[4] v19 tdata[3] u19 tdata[2] v20 tdata[1] t18 tdata[0] i transmit data [31:0] u20 tprty i transmit parity a17 ten i transmit enable (active low) a19 tdxa[1]/tpxa oz transmit direct cell/packet available [1] / polled cell/packet available (tri-state) k17
ds3181/ds3182/ds3183/DS3184 44 of 389 name type function pin tdxa[4] d19 tdxa[3] e19 tdxa[2] o transmit direct cell/packet available [4:2] d20 tsox i transmit start of cell/packet w16 tspa oz transmit selected packet available k16 teop i transmit end of packet v15 tsx i transmit start of transfer y16 tmod[1] b18 tmod[0] i transmit packet data modulus [1:0] b17 terr i transmit packet error y17 rsclk i receive system clock m20 radr[4] t19 radr[3] t20 radr[2] r18 radr[1] r19 radr[0] i receive address [4:0] r20 rdata[31] f16 rdata[30] g16 rdata[29] h16 rdata[28] j16 rdata[27] e17 rdata[26] f17 rdata[25] g17 rdata[24] h17 rdata[23] j17 rdata[22] h18 rdata[21] j18 rdata[20] e18 rdata[19] g19 rdata[18] h19 rdata[17] g20 rdata[16] h20 rdata[15] m16 rdata[14] n16 rdata[13] p16 rdata[12] r16 rdata[11] m17 rdata[10] n17 rdata[9] p17 rdata[8] p18 rdata[7] p19 rdata[6] p20 rdata[5] n18 rdata[4] n19 rdata[3] n20 rdata[2] m18 rdata[1] m19 rdata[0] oz receive data [31:0] (tri-state) l20 rprty oz receive parity k20 ren i receive enable (active low) g18
ds3181/ds3182/ds3183/DS3184 45 of 389 name type function pin rdxa[1]/rpxa/rsx oz receive direct cell/packet available [1]/polled cell/packet available/start of transfer (tri- state) k19 rdxa[4] e20 rdxa[3] f18 rdxa[2] o receive direct cell/packet available [4:2] f19 rsox oz receive start of cell/packet (tri-state) l17 reop oz receive end of packet l16 rval oz receive packet data valid k18 rmod[1] l19 rmod[0] oz receive packet data modulus [1:0] l18 rerr oz receive packet error j19 microprocessor interface d[15] j5 d[14] t4 d[13] r4 d[12] p4 d[11] n4 d[10] v3 d[9] u3 d[8] t3 d[7] p3 d[6] n3 d[5] w2 d[4] u2 d[3] t2 d[2] p2 d[1] u1 d[0] io data [15:0] p1 a[10] c3 a[9] d3 a[8] e3 a[7] g3 a[6] h3 a[5] d2 a[4] e2 a[3] g2 a[2] h2 a[1] i address [10:1] e1 a[0]/bswap address [0] / byte swap h1 ale i address latch enable n2 cs i chip select (active low) l3 rd / ds i read strobe (active low) / data strobe (active low) k3 wr /r /w i write strobe (active low) / r/ w select k4 rdy oz ready handshake (active low) k2 int oz interrupt (active low) l4 mode i mode select rd/wr or ds strobe mode b1 width i width select 8 or 16-bit interface l5
ds3181/ds3182/ds3183/DS3184 46 of 389 name type function pin misc i/o gpio[8] v2 gpio[7] v1 gpio[6] c2 gpio[5] c1 gpio[4] p5 gpio[3] r5 gpio[2] g5 gpio[1] io general-purpose io [8:1] f5 test i test enable (active low) m3 hiz i high-impedance test enable (active low) r3 rst i reset (active low) b16 jtag jtclk i jtag clock f3 jtms ipu jtag mode select (with pullup) f4 jtdi ipu jtag data input (with pullup) j3 jtdo oz jtag data output g4 jtrst ipu jtag reset (active low with pullup) e4 clad clka i clock a k1 clkb io clock b l1 clkc io clock c l2 power vss pwr ground, 0v potential k10, k9, k8, j10, j9, j8, h10, h9, m7, m6, l7. l6, k7. k6, j7, j6, a1, n10, n9, m10, m9, m8, l10, l9, l8, r12, r11, r10, r9, p12, p11, p10, p9, y1, n12, n11, m13, m12, m11, l13, l12, l11, m15, m14, l15, l14, k15, k14, j15, j14, y20, k13, k12, k11, j13, j12, j11, h12, h11, g12, g11, g10, g9, f12, f11, f10, f9, a20 vdd pwr digital 3.3v h8, h7, h6, g8, g7, g6, f8, f7, f6, a2, r8, r7, r6, p8, p7, p6, n8, n7, n6, w1, r15, r14, r13, p15, p14, p13, n15, n14, n13, y19, h15, h14, h13, g15, g14, g13, f15, f14, f13, b20
ds3181/ds3182/ds3183/DS3184 47 of 389 pin # name type function port 4 port 3 port 2 port 1 avddrn pwr analog 3.3v for receive liu on port n y4 a4 t1 d1 avddtn pwr analog 3.3v for transmit liu on port n t7 e7 n1 j4 avddjn pwr analog 3.3v for jitter attenuator on port n v6 c6 n5 g1 avddc pwr analog 3.3v for clad k5 no connects nc nc no connect, unused h4 h5 m4 m5 8.2 detailed pin descriptions table 8-2. detailed pin descriptions n = 1,2,3,4 (port number). ipu (input with pullup), oz (output tri-stateable) (needs an external pullup or pulldown resistor to keep from floating), oa (analog output), ia (analog input), io (bidirectional in/out). all unused input pins without pullup should be tied low. pin type function line io tlclkn o transmit line clock output tlclkn : this signal is available when the transmit line interface pins are enabled ( port.cr2. tlen). this clock is typically used as the clock reference for the tposn / tdatn and tneg / tohmon signals, but can also be used as the reference for the tohmin / tsofin, tfohn / tsern, tfohenin and tsofon / tdenn / tfohenon signals. this output signal can be inverted. o ds3: 44.736 mhz + 20 ppm o e3: 34.368 mhz + 20 ppm o cc52: 52 mhz + 20 ppm tposn / tdatn o transmit positive ami / data output tposn : when the port line interface is configured for b3zs, hdb3 or ami mode and the framer is not configured for one of the ?-ohm? modes (see table 10-32 ) and the transmit line interface pins are enabled ( port.cr2. tlen), a high on this pin indicates that a positive pulse should be transmitted on the line. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tlclkn line clock output pins, but it can be referenced to the tclkon, tclkin, rlclkn or rclkon pins. this output signal can be disabled when the tx liu is enabled. this output signal can be inverted. tdatn : when the port line interface is configured for uni mode or the framer is configured for one of the ?-ohm? modes (see table 10-32 ) and the transmit line interface pins are enabled ( port.cr2. tlen), the un-encoded transmit signal is output on this pin. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tlclk line clock output pins, but it can be referenced to the tclkon, tclkin, rlclkn or rclkon pins this output signal can be inverted. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm o cc52: 52 mbps + 20ppm
ds3181/ds3182/ds3183/DS3184 48 of 389 pin type function tnegn / tohmon o transmit negative ami / line oh mask tnegn : when the port line is configured for b3zs, hdb3 or ami mode and the framer is not configured for one of the ?-ohm? modes (see table 10-32 ) and the transmit line interface pins are enabled ( port.cr2. tlen), a high on this pin indicates that a negative pulse should be transmitted on the line. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tlclkn line clock output pins, but it can be referenced to the tclkon, tclkin, rlclkn or rclkon pins. this output signal can be inverted. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm o cc52: 52 mbps + 20ppm tohmon : when the framer is configured for one of the ?-ohm? modes (see table 10-32 ) and the transmit line interface pins are enabled ( port.cr2. tlen), the transmit overhead mask signal is output on this pin. this signal is a delayed version of tohmin or rohmin when in local loopback (three clock period delay). this signal will be high to indicate that the data on tdatn is not valid data and can be overwritten by external logic to add an external frame signal. this signal will be low to indicate that the data on tdatn is valid. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tlclkn line clock output pins, but it can be referenced to the tclkon, tclkin, rlclkn or rclkon pins. this output signal can be inverted. txpn oa transmit positive analog txpn : this pin and the txnn pin form a differential ami output which is coupled to the outbound 75  coaxial cable through a 2:1 step-down transformer ( figure 1-1 ). this output is enabled when the tx liu is enabled and the output is enabled to be driven. when it is not enabled, it is in a high impedance state. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm o cc52: 52 mbps + 20ppm txnn oa transmit negative analog txnn : this pin and the txpn pin form a differential ami output which is coupled to the outbound 75  coaxial cable through a 2:1 step-down transformer ( figure 1-1 ). this output is enabled when the tx liu is enabled and the output is enabled to be driven. when it is not enabled, it is in a high impedance state. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm o cc52: 52 mbps + 20ppm rxpn ia receive positive analog rxpn : this pin and the rxnn pin form a differential ami input which is coupled to the outbound 75  coaxial cable through a 2:1 step-up transformer ( figure 1-1 ). this input is used when the rx liu is enabled and is ignored when the liu is disabled. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm o cc52: 52 mbps + 20ppm rxnn ia receive negative analog rxnn : this pin and the rxpn pin form a differential ami input which is coupled to the outbound 75  coaxial cable through a 2:1 step-up transformer ( figure 1-1 ). this input is used when the liu is enabled and is ignored when the liu is disabled. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm o cc52: 52 mbps + 20ppm
ds3181/ds3182/ds3183/DS3184 49 of 389 pin type function rlclkn i receive line clock input rlclkn : this clock is typically used for the reference clock for the rposn / rdatn, rnegn / rlcvn / rohmin signals but can also be used as the reference clock for the rsern, rsofon / rdenn / rfohenon, rfohenin, tohmin / tsofin, tfohn / tsern, tfohenin, tsofon / tdenn / tfohenon, tposn / tdatn and tnegn / tohmon signals. this input is ignored when the liu is enabled. this input signal can be inverted. o ds3: 44.736 mhz + 20 ppm o e3: 34.368 mhz + 20 ppm o cc52: 52 mhz + 20 ppm rposn / rdatn i receive positive ami / data rposn : when the port line is configured for b3zs, hdb3 or ami mode and the framer is not configured for one of the ?-ohm? modes and the liu is disabled, a high on this pin indicates that a positive pulse has been detected using an external liu. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rlclkn line clock input pins, but it can be referenced to the rclkon output pins. this input signal can be inverted. rdatn : when the port line interface is configured for uni mode or the framer is configured for one of the ?-ohm? modes, the un-encoded receive signal is input on this pin. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rlclkn line clock input pins, but it can be referenced to the rclkon output pins. this input signal can be inverted. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm o cc52: 52 mbps + 20ppm rnegn / rlcvn / rohmin i receive negative ami / line code violation / line oh mask input rnegn : when the port line is configured for b3zs, hdb3 or ami mode and the framer is not configured for one of the ?-ohm? modes and the liu is disabled, a high on this pin indicates that a negative pulse has been detected using an external liu. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rlclkn line clock input pins, but it can be referenced to the rclkon output pins. this input signal can be inverted. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm o cc52: 52 mbps + 20ppm rlcvn : when the port line interface is configured for uni mode and the framer is not configured for one of the ?-ohm? modes, the bpv counter in the encoder/decoder block is incremented each clock when this signal is high. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rlclkn line clock input pins, but it can be referenced to the rclkon output pins. this input signal can be inverted. rohmin : when the port framer is configured for one of the ?-ohm? modes, this signal is used to mark the overhead bits on the rdatn pins when it is high. the ds318x will ignore overhead bits. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rlclkn line clock input pins, but it can be referenced to the rclkon output pins. this input signal can be inverted.
ds3181/ds3182/ds3183/DS3184 50 of 389 pin type function ds3/e3 overhead interface tohn i transmit overhead / line oh mask input tohn : when the port framer is configured for one of the ds3 or e3 framing modes, this signal will be used to over-write the ds3 or e3 framing overhead bits when tohenn is active. in t3 mode, the x-bits, p-bits, m-bits, f-bits, and c-bits are input. in g.751 e3 mode, all of the fas, rai, and national use bits are input. in g.832 e3 mode, all of the fa1, fa2, em, tr, ma, nr, and gc bytes are input. the tohsofn signal marks the start of the framing bit sequence. this signal is sampled at the same time as the tohclkn signal transitions high to low. this signal can be inverted. tohenn i transmit overhead enable / start of frame input tohenn : when the port framer is configured for one of the ds3 or e3 framing modes, this signal will be used the determine which ds3 or e3 framing overhead bits to over-write with the signal on the tohn pins. the tohsofn signal marks the start of the framing bit sequence. this signal is sampled at the same time as the tohclkn signal transitions high to low. this signal can be inverted. tohclkn o transmit overhead clock tohclkn : when the port framer is configured for one of the ds3 or e3 framing modes, this clock is used for the transmit overhead port signals tohn, tohenn and tohsofn. the tohsofn output signal is updated and the tohn and tohenn input signals are sampled at the same time this clock signal transitions from high to low. the external logic is expected to sample tohsofn signal and update the tohn and tohenn signals on the rising edge of this clock signal. this clock is a low frequency clock. this signal can be inverted. tohsofn o transmit overhead start of frame tohsofn : when the port framer is configured for one of the ds3 or e3 framing modes, this signal is used to mark the start of a ds3 or e3 overhead sequence on the tohn pins. in t3 mode, the first x-bit is marked. in g.751 e3 mode, the first bit of the fas word is marked. in g.832 e3 mode, the first bit of the fa1 byte is marked. the sequence starts on the same high to low transition of the tohclkn clock that this signal is high. this signal is updated at the same time as the tohclkn signal transitions high to low. this signal can be inverted. rohn o receive overhead rohn : when the port framer is configured for one of the ds3 or e3 framing modes, this signal outputs the value of the receive overhead bits. the rohsofn signal marks the start of the framing bit sequence. in t3 mode, the x-bits, p-bits, m-bits, f- bits, and c-bits are output (note: in m23 mode, the c-bits are extracted even though they are marked as data at the payload interface). in g.751 e3 mode, all of the fas, rai, and national use bits are output. in g.832 e3 mode, all of the fa1, fa2, em, tr, ma, nr, and gc bytes are output. this signal is updated at the same time as the rohclkn signal transitions high to low. this signal can be inverted. rohclkn o receive overhead clock rohclkn : when the port framer is configured for one of the ds3 or e3 framing modes, this clock is used for the receive overhead port signals rohn and rohsofn. the rohsofn and rohn output signals are updated at the same time this clock signal transitions from high to low. the external logic is expected to sample rohsofn and rohn signal on the rising edge of this clock signal. this clock is a low frequency clock. this signal can be inverted.
ds3181/ds3182/ds3183/DS3184 51 of 389 pin type function rohsofn o receive overhead start of frame rohsofn : when the port framer is configured for one of the ds3 or e3 framing modes this signal is used to mark the start of a ds3 or e3 overhead sequence on the rohn pins. in t3 mode, the first x-bit is marked. in g.751 e3 mode, the first bit of the fas word is marked. in g.832 e3 mode, the first bit of the fa1 byte is marked. the sequence starts on the same high to low transition of the rohclkn clock that this signal is high. this signal is updated at the same time as the rohclkn signal transitions high to low. this signal can be inverted. ds3/e3 serial data, plcp and fractional ds3/e3 overhead interface tclkin i transmit line clock input tclkin : this clock is typically used for the reference clock for the tohmin / tsofin, tfohn / tsern, tfohenin / tpdenin, tpdatn, tpdenon and tsofon / tdenn / tfohenon signals but can also be used as the reference for the tposn / tdatn and tnegn / tohmon signals. this clock is not used when the part is in loop time mode or the clad clocks are used as the transmit clock source. ( port.cr3 .cladc) this input signal can be inverted. o ds3: 44.736 mhz + 20 ppm o e3: 34.368 mhz + 20 ppm o cc52: 52 mhz + 20 ppm tsofin / tohmin i transmit start of frame input / oh mask input. see table 10-20 . tsofin : when the port framer is configured for any of the ds3 or e3 non ?-ohm? framed modes, this signal can be used to align the start of the ds3 or e3 frames on the tser pin to an external signal. in the fractional mode, the tsofin signal can be used to align the start of frame signal position on the tsern/tohn pin to the rising edge of a signal on this pin. the signal edge does not need to occur on every frame and can be tied high or low. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pins, but it can be referenced to the tlclkn, tclkon, rclkon and rlclkn clock pins. this signal can be inverted. tohmin : when the port framer is configured for one of the ?- ohm? modes, this signal is used to mark clock periods when valid data bits are available on the tdatn output pins. when this signal is low, valid data bits will be available on the tdatn output pins three clock periods later. this signal precedes the signal on tdatn and tohmon by three clock periods. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pins, but it can be referenced to the tlclkn, tclkon, rclkon and rlclkn clock pins. this signal can be inverted. tsern / tpohn / tfohn / i transmit serial data / plcp overhead / fractional overhead. see table 10-21 . tsern : when the port framer is configured for flexible fractional mode, this pin is used as the source of the ds3/e3 payload data. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pins, but it can be referenced to the tlclkn, tclkon / tgclkn, rclkon and rlclkn clock pins this signal can be inverted. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm o cc52: 52 mbps + 20ppm tpohn : when the p ort framer is confi g ured for one of the ds3 or e3 plcp framin g
ds3181/ds3182/ds3183/DS3184 52 of 389 pin type function modes, and the port is enabled, this signal will be used to over-write the ds3 or e3 plcp framing overhead bits when tpohenn is active. the tpohsofn signal marks the start of the framing bit sequence. this signal is sampled at the same time as the tpohclkn signal transitions high to low. this signal can be inverted. tfohn : when the port framer is configured for one of the ds3 or e3 internal or external fractional framing modes, and the port is enabled the internal fractional framing modes, this pin can be used to source the fractional overhead data. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pins, but it can be referenced to the tlclkn, tclkon / tgclkn, rclkon and rlclkn clock pins this signal can be inverted. tpdenin / tpohenn / tfohenin i transmit payload data enable input / plcp overhead enable / fractional oh enable input. see table 10-22 . tpdenin : when the port is configured for the flexible fractional mode, this pin is used to enable payload data from the cell/packet processor. there is a three-clock delay between tpdenin and tpdenon. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pins, but it can be referenced to the tlclkn, tclkon, rclkon and rlclkn clock pins this signal can be inverted. tpohenn : when the port framer is configured for one of the ds3 or e3 plcp framing modes, and the port is enabled, this signal will be used the determine which ds3 or e3 plcp framing overhead bits to over-write with the signal on the tpohn pins. the tpohsofn signal marks the start of the framing bit sequence. this signal is sampled at the same time as the tpohclkn signal transitions high to low. this signal can be inverted. tfohenin : when the port framer is configured for the ds3 or e3 external fractional framing, this pin is used to mark the fractional overhead data on the tfohn pin. the tsofon or tsofin pins can be used to select which ds3/e3 payload bits relative to the start of the ds3/e3 frame to mark. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pins, but it can be referenced to the tlclkn, tclkon, rclkon and rlclkn clock pins this signal can be inverted. tclkon / tgclkn / tpohclkn o transmit clock output / gapped clock / plcp overhead clock. see table 10-24 . tclkon : when the port is configured external fractional modes and tclkon is selected, or any other mode and the port pins are enabled and tclkon is selected, this clock output is enabled. this clock is the same clock as the internal framer transmit clock. this clock is typically used for the reference clock for the tohmin / tsofin, tfohn / tsern, tfohenin and tsofon / tdenn / tfohenon signals but can also be used as the reference for the tposn / tdatn and tnegn / tohmon signals. this signal can be inverted. o ds3: 44.736 mhz + 20 ppm o e3: 34.368 mhz + 20 ppm o cc52: 52 mhz + 20 ppm tgclkn : when the port is configured internal fractional mode or any simple ds3/e3 framed mode and the port pins are enabled and tgclkn is selected, this gated output clock is enabled. this gapped clock is the same clock as the internal framer transmit clock and is gated by either tdenn or tfohenon depending on which signal is active. this clock is typically used for the reference clock for the tfohn / tsern signals.
ds3181/ds3182/ds3183/DS3184 53 of 389 pin type function this signal can be inverted. tpohclkn : when the port framer is configured for one of the ds3 or e3 plcp framing modes, the port pins are enabled and the tclkon pin function is not selected, this clock is used for the transmit overhead port signals tpohn, tpohenn and tpohsofn. the tpohsofn output signal is updated and the tpohn and tpohenn input signals are sampled at the same time this clock signal transitions from high to low. the external logic is expected to sample tpohsofn signal and update the tpohn and tpohenn signals on the rising edge of this clock signal. this clock is a low frequency clock. this signal can be inverted. tsofon / tdenn / tpohsofn / tfohenon o transmit plcp overhead start of frame / framer start of frame /data enable see table 10-23 . tsofon : when the port framer is configured for the external fractional or flexible fractional modes and the port pins are enabled and the tsofon pin function is selected, this signal is used to indicate the start of the ds3/e3 frame on the tpohn / tfohn / tsern pin. the signal is also active in the non-plcp non-fractional ds3 or e3 framing modes when the port pins are enabled and the tsofon pin function is selected. this signal pulses high three clocks before the first overhead bit in a ds3 or e3 frame that will be input on tsern or tfohn. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pins, but it can be referenced to the tlclkn, tclkon, rclkon and rlclkn clock pins. this signal can be inverted. tdenn : when the port framer is configured for the external fractional or flexible fractional modes and the port pins are enabled and the tdenn pin function is selected, this signal is used to mark the ds3/e3 frame bits on the tpohn / tfohn / tsern pin. the signal is also active in the non-plcp non-fractional ds3 or e3 framing modes when the port pins are enabled and the tdenn pin function is selected. the signal goes high three clocks before the start of ds3/e3 payload bits and goes low three clocks before the end of the ds3/e3 payload bits. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pins, but it can be referenced to the tlclkn, tclkon, rclkon and rlclkn clock pins. this signal can be inverted. tpohsofn : when the port framer is configured for one of the plcp framing modes and the port pins are enabled, this signal is used to mark the start of a ds3 or e3 plcp overhead sequence on the tpohn pins. the sequence starts on the same high to low transition of the tpohclkn clock that this signal is high. this signal is updated at the same time as the tpohclkn signal transitions high to low. this signal can be inverted. tfohenon : when the port framer is configured for one of the internal fractional modes and the port pins are enabled, this signal is used to indicate the fractional overhead bit positions of the data on the tohn pin. the signal goes high one clock before the start of ds3/e3 fractional overhead bits and goes low one clock before the end of the ds3/e3 fractional payload bits. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pin, but it can be referenced to the tlclkn, tclkon, rclkon or rlclkn clock pin. this signal can be inverted.
ds3181/ds3182/ds3183/DS3184 54 of 389 pin type function tpdenon o transmit payload data enable output. see table 10-26 . tpdenon : when the port framer is enabled for the flexible fractional mode and the port pins are enabled, this signal marks which bits on the tpdatn pin are valid payload data bits. it is high during the same clock cycle the tpdatn payload data bit is valid. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pin, but it can be referenced to the tlclkn, tclkon, rclkon or rlclkn clock pin. this signal can be inverted. tpdatn o transmit payload data. see table 10-26 . tpdatn : when the port framer is enabled for the flexible fractional mode and the port pins are enabled, this signal is the payload bits from the cell/packet processor. the data is valid if the tpdenon signal is high during the same clock cycle. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tclkin transmit clock input pin, but it can be referenced to the tlclkn, tclkon, rclkon or rlclkn clock pin. this signal can be inverted. rpdenin / rfohenin i receive payload data enable input / fractional overhead enable input see table 10-28 . rpdenin : when the port is configured for the flexible fractional mode, this pin is used to enable payload data for the cell/packet processor. the data on rpdatn is used when this signal is high. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rclkon receive clock output pins, but it can be referenced to the rlclkn clock input pin. this signal can be inverted. rfohenin : when the port framer is configured for the external fractional framing mode, this pin is used to mark the receive bits to use for fractional overhead data. the signal on the rsofon pin can be used to select which ds3/e3 payload bits relative to the start of the ds3/e3 frame to mark . the signal needs to go high for each bit on the rsern pin that should be treated as fractional overhead in the ds3/e3 payload. rfohenin needs to go high or low three clock periods after the data bit on rsern is present to mark that bit as payload or fractional overhead. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rclkon receive clock output pins, but it can be referenced to the rlclkn clock input pin. this signal can be inverted. rpdatn i receive payload data. see table 10-29 . rpdatn : when the port framer is enabled for the flexible fractional mode and the port pins are enabled, this signal is the payload bits for the cell/packet processor. the data is used if the rpdenon signal is high during the same clock cycle. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rclkon receive clock output pins, but it can be referenced to the rlclkn clock input pin. this signal can be inverted. rsern / rpohn o receive serial data / plcp overhead. see table 10-27 . rsern : when the port framer is configured for the external fractional mode, internal fractional mode, or flexible fractional mode, and the port pins are enabled, this pin outputs the receive data signal from the liu or receive line pins. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the rclkon receive clock output pin, but it can be referenced to the rgclkn and rlclkn clock pins.
ds3181/ds3182/ds3183/DS3184 55 of 389 pin type function this signal can be inverted o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm o cc52: 52 mbps + 20ppm rpohn : when the port framer is configured for one of the plcp framing modes and the port pins are enabled, this signal outputs the value of the receive plcp overhead bits. the rpohsofn signal marks the start of the framing bit sequence. this signal is updated at the same time as the rpohclkn signal transitions high to low. this signal can be inverted. rclkon / rgclkn / rpohclkn o receive clock output / gapped clock / plcp overhead clock. see table 10-31 . rclkon : when the port is configured for external fractional mode or flexible fractional mode and rclkon is selected, or any other mode and the port pins are enabled and rclkon is selected, this clock output signal is active. it is the same as the internal receive framer clock. this clock is typically used for the reference clock for the rsern, rsofon / rdenn / rfohenon, rpdatn, and rfohenin / rpdenin signals but can also be used as the reference for the rposn / rdatn, rnegn / rlcvn / rohmin tohmin / tsofin, tfohn / tsern, tfohenin, tsofon / tdenn / tfohenon, tposn / tdatn and tnegn / tohmon signals. this signal can be inverted. o ds3: 44.736 mhz + 20 ppm o e3: 34.368 mhz + 20 ppm o cc52: 52 mhz + 20 ppm rgclkn : when the port is configured for internal fractional or any simple ds3/e3 framed mode and the port pins are enabled and rgclkn is selected, this gated clock output signal is active. it is the internal receive framer clock gated by either rdenn or rfohenon, depending on which signal is active. this clock is typically used as the reference clock for the rsern pin. this signal can be inverted rpohclkn : when the port framer is configured for one of the plcp framing modes and the port pins are enabled, this clock is used for the receive plcp overhead port signals rpohn and rpohsofn. the rpohsofn and rpohn output signals are updated at the same time this clock signal transitions from high to low. the external logic is expected to sample rpohsofn and rpohn signal on the rising edge of this clock signal. this clock is a low frequency clock. this signal can be inverted.
ds3181/ds3182/ds3183/DS3184 56 of 389 pin type function rsofon / rdenn / rpohsofn / rfohenon o receive framer start of frame /data enable / plcp overhead start of frame. see table 10-30 . rsofon : when the port framer is configured for external fractional or flexible fractional mode and the rsofon pin function is enabled, or when it is configured for one of the ds3 or e3 framed only modes and the port pins are enabled and the rsofon pin function is enabled, this signal is used to indicate the start of the ds3/e3 frame. this signal indicates the first ds3/e3 overhead bit on the rsern pin when high. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the rclkon receive clock output pin, but it can be referenced to the rlclkn clock input pin. this signal can be inverted. rdenn : when the port framer is configured for external fractional or flexible fractional mode and the rdenn pin function is enabled and the port pins are enabled and the rdenn pin function is enabled, this signal is used to indicate the ds3/e3 payload bit positions of the data on the rsern pin. the signal goes high during each ds3/e3 payload bit and goes low during each ds3/e3 overhead bit. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the rclkon receive clock output pin, but it can be referenced to the rlclkn clock input pin. this signal can be inverted. rpohsofn : when the port framer is configured for one of the plcp framing modes and the port pins are enabled, this signal is used to mark the start of a ds3 or e3 plcp overhead sequence on the rpohn pins. the sequence starts on the same high to low transition of the rpohclkn clock that this signal is high. this signal is updated at the same time as the rpohclkn signal transitions high to low. this signal can be inverted. rfohenon : when the port framer is configured for internal fractional mode and the port pins are enabled, this signal is used to indicate the fractional overhead bit positions of the data on the rsern pin. the signal goes high during each ds3/e3 fractional overhead bit and goes low during each ds3/e3 fractional payload bit. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the rclkon receive clock output pin, but it can be referenced to the rlclkn clock input pin. this signal can be inverted. utopia/pos-phy/spi-3 system interface tsclk i transmit system clock tsclk : this signal is used to sample or update the other transmit system interface signals. tsclk has a maximum frequency of 66 mhz in l3 modes and 52 mhz in l2 modes. tadr[4:0] i transmit address [4:0] tadr[4:0] : in utopia l2, utopia l3 or pos-phy l2 modes, this 5-bit address bus is used by the atm/link layer device to select a specific port for data transfer or to poll for fifo status.. in pos-phy l3 modes, this 5-bit address is used by the link layer device to poll for fifo status. tadr[4] is the msb and tadr[0] is the lsb. this bus is sampled on the rising edge of tsclk. tdata[31:0] i transmit data [31:0] tdata[31:0] : this 32-bit data bus is used to transfer cell/packet data from the atm/link layer device. this bus is sampled on the rising edge of tsclk. in 32-bit mode, tdata[31] is the msb and tdata[0] is the lsb. in 16-bit mode, tdata [ 15 ] is the msb, tdata [ 0 ] is the lsb, and td a ta [ 31:16 ] are
ds3181/ds3182/ds3183/DS3184 57 of 389 pin type function not used and ignored. in 8-bit mode, tdata[7] is the msb, tdata[0] is the lsb, and tdata[31:8] are not used and ignored. tprty i transmit parity tprty : this signal indicates the parity on the data bus when parity checking is enabled. this option is programmable. tprty is ignored if parity checking is disabled. this signal is sampled on the rising edge of tsclk. ten i transmit enable (active low) ten : this signal is used by the atm/link device to control the transfer of cell/packet data on the tdata bus. if ten is high, no transfer occurs. if ten is low, a transfer occurs. this signal can be sampled on the rising edge of tsclk . tdxa[1] / tpxa oz transmit direct cell/packet available [1] / polled cell/packet available (tri-state) this signal is tri-state when global reset is applied. tdxa[1] : when direct status mode is selected, this signal is used to indicate when port 1 can accept data from the atm/link layer device. this signal is updated on the rising edge of tsclk. in utopia l2 or utopia l3 modes, tdxa goes high when port 1 can accept the transfer of more than a programmable number of atm cells. tdxa goes low when port 1 cannot accept the transfer of a complete atm cell. in pos-phy l2 or pos-phy l3 modes, tdxa goes high when port 1 can store more data than the "almost full" level. tdxa goes low when port 1 is full. tpxa : (reset default) when polled status mode is selected, this signal is used to indicate when the polled port, as selected by tadr[4:0], can accept data from the atm/link layer device. this signal is updated on the rising edge of tsclk. in utopia l2 or utopia l3 modes, tpxa goes high when the polled port?s fifo can accept the transfer of more than a programmable number of atm cells (the ?almost full? level). tpxa goes low when the polled port cannot accept the transfer of a complete atm cell. in pos-phy l2 or pos-phy l3 modes, tpxa goes high when the polled port?s fifo can store more data than the "almost full" level. tpxa goes low when the polled port is full. in utopia l2 (reset default) or pos-phy l2 modes, this signal is driven when one of the ports is being polled, and is tri-stated when none of the ports is being polled or when data path reset is active. in utopia l3 or pos-phy l3 modes, this signal is driven. note: polled status mode or direct status mode is selected by the gl.cr1 .diren bit. tdxa[4:2] o transmit direct cell/packet available [4:2] tdxa[4:2] : this signal is used to indicate when the associated port can accept data from the atm/link layer device. this signal can be updated on the rising edge of tsclk. in utopia l2 or l3 modes, tdxa goes high when the associated port?s can accept the transfer of more than a programmable number of atm cells (?almost full? level). tdxa goes low when the associated port cannot accept the transfer of a complete atm cell. in pos-phy l2 or l3 modes, tdxa goes high when the associated port?s fifo can store more data than the "almost full" level. tdxa goes low when the associated port?s fifo is full. tsox i transmit start of cell/packet tsox : this signal is used to indicate the first transfer of a cell/packet. this signal can be sampled on the rising edge of tsclk. in utopia l2 or l3 modes, tsox indicates the first transfer of a cell. in pos-phy l2 or l3 modes, tsox indicates the first transfer of a packet. tspa oz transmit selected packet available this signal is tri-state when global reset is applied. tsp a : in pos-phy l2 or pos-phy l3 modes, this si g nal is used to indicate the
ds3181/ds3182/ds3183/DS3184 58 of 389 pin type function selected port can accept data from the link layer device. tspa goes high when a port is selected for transfer and it can accept more data than the "almost full" level. tspa goes low when the selected port is "full" or no port is selected. this signal is updated on the rising edge of tsclk. in utopia l3 mode this signal is low. in pos-phy l2 mode, this signal is driven when one of the ports is selected for data transfer, and tri-state when ten is deasserted, none of the ports is selected or when data path reset is active. pos-phy l3 or utopia l3 modes this signal is driven. in utopia l2 (reset default) mode this signal is tri-stated. teop i transmit end of packet teop : in pos-phy l2 or l3 modes, this signal is used to indicate the last transfer of a packet. this signal is sampled on the rising edge of tsclk. in utopia l2 or l3 modes, this signal is ignored. tsx i transmit start of transfer tsx : in pos-phy l3 mode, this signal indicates the start of a data transfer. tsx goes high goes high immediately before the start of data transfer to indicate that the in-band port address is present on tdata. tsx goes high when the value of tdata is the address of the transmit port to which data is to be transferred. when tsx goes low, all subsequent transfers will be to the port specified by the in-band address. this signal is sampled on the rising edge of tsclk. tsx is only valid when ten is high. in utopia l2, utopia l3 or pos-phy l2 modes, this signal is ignored. tmod[1:0] i transmit packet data modulus [1:0] tmod[1:0] : in pos-phy l2 or l3 modes, this signal indicates the number of valid bytes on the tdata bus. tmod[1:0]=00 tdat[31:0] valid tmod[1:0]=01 tdat[31:8] valid tmod[1:0]=10 tdat[31:16] valid tmod[1:0]=11 tdat[31:24] valid this signal is sampled on the rising edge of tsclk. tmod is only valid when teop is high. in 16-bit pos-phy l2 or 16-bit pos-phy l3 mode, tmod[1] is ignored. in 8-bit pos-phy l2 or 8-bit pos-phy l3 modes, tmod[1:0] are ignored. in utopia l2 or utopia l3 modes, tmod[1:0] are ignored. terr i transmit packet error terr : in pos-phy l2 or pos-phy l3 modes, this signal indicates that the current packet is erred. when terr is high, the current packet should be aborted. this signal is sampled on the rising edge of tsclk. terr is only valid when teop is high. in utopia l2 or utopia l3 modes, this signal is ignored. rsclk i receive system clock rsclk : this signal is used to sample or update the other receive system interface signals. rsclk has a maximum frequency of 66 mhz in utopia l3 or pos-phy l3 modes and 52 mhz in utopia l2 or pos-phy l2 modes. radr[4:0] i receive address [4:0] radr[4:0] : in utopia l2, utopia l3 or pos-phy l2 modes, this 5-bit address bus is used by the atm/link layer device to select a specific port for data transfer and polling fifo status. radr[4] is the msb and radr[0] is the lsb. this bus is sampled on the rising edge of rsclk. in pos-phy level 3 (or spi-3) mode, this bus is ignored.
ds3181/ds3182/ds3183/DS3184 59 of 389 pin type function rdata[31:0] oz receive data [31:0] (tri-state) this signal is tri-state when global reset is applied. rdata[31:0] : this 32-bit data bus is used to transfer cell/packet data to the atm/link layer device. this bus is updated on the rising edge of rsclk. in 32-bit mode- rdata[31] is the msb and rdata[0] is the lsb. in utopia l2 or pos-phy l2 modes, rdata[31:0] are driven when one of the ports is selected for data transfer, and tri-stated when ren is deasserted, none of the ports is selected or data path reset is active. in utopia l3 or pos-phy l3 modes rdata[31:0] are driven. in 16-bit mode- rdata[15] is the msb, rdata[0] is the lsb, and rdata[31:16] are not used. in utopia l2 or pos-phy l2 modes, rdata[15:0] are driven when one of the ports is selected for data transfer, and tri-stated when ren is deasserted, none of the ports is selected or data path reset is active. rdata[31:16] are tri-stated. in utopia l3 or pos-phy l3 modes, rdata[31:0] are driven. in 8-bit mode (reset default)- rdata[7] is the msb, rdata[0] is the lsb, and rdata[31:8] are not used. in utopia l2 (reset default) or pos-phy l2 modes, rdata[7:0] are driven when one of the ports is selected for data transfer, and tri-stated when ren is deasserted, none of the ports is selected or data path reset is applied. rdata[31:8] are tri-stated. in utopia l3 or pos-phy l3 modes, rdata[31:0] are driven. rprty oz receive parity (tri-state) rprty : this signal indicates the parity on the data bus when parity generation is enabled. this option programmable. rprty is held low if parity generation is disabled. this signal is updated on the rising edge of rsclk. in utopia l2 (reset default) or pos-phy l2 modes, this signal is driven when one of the ports is selected for data transfer, and tri-stated when ren is deasserted, none of the ports is selected or data path reset is active. in utopia l3 or pos-phy l3 modes this signal is driven. ren i receive enable (active low) ren : this signal is used by the atm/link device to control the transfer of cell/packet data on the rdata bus. if ren is high, no transfer occurs. if ren is low, a transfer occurs. this signal can be sampled on the rising edge of rsclk . rdxa[1] / rpxa / rsx oz receive direct cell/packet available [1] / polled cell/packet available / start of transfer (tri-state) this signal is tri-state when global reset is applied. rdxa[1] : this signal is active in utopia l2, utopia l3 or pos-phy l2 modes when direct status mode is selected. it is used to indicate when port 1 can send data to the atm/link layer device. this signal is updated on the rising edge of rsclk. in utopia l2 or utopia l3 modes, rdxa goes high when the port 1 fifo has more than a programmable number of atm cells ready for transfer ("almost empty" level). rdxa goes low when the associated port does not have a complete atm cell ready for transfer. in pos-phy l2 mode, rdxa goes high when the port 1 fifo contains more data than the "almost empty" level or has an end of packet ready for transfer. rdxa goes low when the associated port does not have an end of packet ready for transfer and is "almost empty". rpxa : (reset default) this signal is active in utopia l2, utopia l3 or pos-phy l2 modes when polled status mode is selected. it is used to indicate when the polled port, as selected by radr[4:0], can send data to the atm/link layer device. this signal is updated on the rising edge of rsclk.
ds3181/ds3182/ds3183/DS3184 60 of 389 pin type function in utopia l2 or utopia l3 modes, rpxa goes high when the polled port has more than a programmable number of atm cells ready for transfer ("almost empty" level of the associated fifo). rpxa goes low when the polled port?s fifo does not have a complete atm cell ready for transfer. in pos-phy l2 mode, rpxa goes high when the polled port?s fifo contains more data than the "almost empty" level or has an end of packet ready for transfer. rpxa goes low when the port does not have an end of packet ready for transfer and is "almost empty". in utopia l2 (reset default) or pos-phy l2 modes, this signal is driven when one of the ports is being polled, and is tri-stated when none of the ports is being polled or when data path reset is active. in utopia l3 mode this signal is driven. rsx : this signal is active in pos-phy l3 modes and indicates the start of a data transfer. this signal is updated on the rising edge of rsclk. rsx goes high immediately before the start of data transfer to indicate that the in- band port address is present on rdata. rsx goes high when the value of rdata is the address of the receive port from which data is to be transferred. when rsx goes low, all subsequent transfers will be from the port specified by the in-band address. when rsx is high, rval must be low. this signal is always driven in pos-phy l3 mode. rdxa[4:2] o receive direct cell/packet available [4:2] rdxa[4:2] : this signal is used to indicate when the associated port can send data to the atm/link layer device. this signal is updated on the rising edge of rsclk. in utopia l2 or utopia l3 modes, rdxa goes high when the associated port has more than a programmable number of atm cells ready for transfer ("almost empty" level). rdxa goes low when the associated port does not have a complete atm cell ready for transfer. in pos-phy l2 mode, rdxa goes high when the associated port?s fifo contains more data than the "almost empty" level or has an end of packet ready for transfer. rdxa goes low when the associated port?s fifo does not have an end of packet ready for transfer and is "almost empty". in pos-phy level 3 (or spi-3) mode or when polled status mode is selected, these signals are held low. rsox oz receive start of cell/packet (tri-state) this signal is tri-state when global reset is applied. rsox : this signal is used to indicate the first transfer of a cell/packet. this signal is updated on the rising edge of rsclk. in utopia l2 or utopia l3 modes, rsox is used to indicate the first transfer of a cell. in pos-phy l2 or pos-phy l3 modes, rsox is used to indicate the first transfer of a packet. in utopia l2 (reset default) or pos-phy l2 modes, this signal is driven when one of the ports is selected for data transfer, and tri-stated when ren is deasserted, none of the ports is selected or data path reset is active. in utopia l3 or pos-phy l3 modes this signal is driven.
ds3181/ds3182/ds3183/DS3184 61 of 389 pin type function reop oz receive end of packet (tri-state) this signal is tri-state when global reset is applied. reop : in pos-phy l2 or pos-phy l3 modes, this signal is used to indicate the last transfer of a packet. this signal is updated on the rising edge of rsclk. in utopia l3 mode, this signal is held low. in pos-phy l2 mode, this signal is driven when one of the ports is selected for data transfer, and tri-stated when ren is deasserted, none of the ports is selected or data path reset is active. in utopia l2 (reset default) mode this signal is tri-stated. in all utopia l3 or pos-phy l3 modes this signal is driven. rval oz receive packet data valid (tri-state) this signal is tri-state when global reset is applied. rval : in pos-phy l2 or pos-phy l3 modes, this signal is used to indicate the validity of a receive data transfer. when rval is high, the receive data bus (rdata, rprty, rsox, reop, rmod, and rerr) is valid and a packet data transfer occurs. when rval is low, the receive data bus is invalid and a data transfer does not occurs. this signal is updated on the rising edge of rsclk. rval goes high when a port is selected for packet data transfer and the port has a programmable size block of data or an end of packet ready for transfer. in pos-phy l2 mode, rval goes low if the selected port is empty, at the end of a packet, or when ren is deasserted. once rval goes low, it will remain low until ren is deasserted. in pos-phy l3 mode, rval goes low if the selected port is empty or at the end of a packet if the minimum deassertion time is greater than zero. rval will remain deasserted for the programmable minimum deassertion time. in utopia l3 mode, this signal is held low. in pos-phy l2 mode, this signal is driven when one of the ports is selected for data transfer, and tri-stated when ren is deasserted, none of the ports is selected or data path reset is active. in utopia l2 (reset default) mode this signal is tri-stated. in all utopia l3 or pos-phy l3 modes this signal is driven. rmod[1:0] oz receive packet data modulus [1:0] (tri-state). this signal is tri-state when global reset is applied. rmod[1:0] : in pos-phy l2 or pos-phy l3 modes, this signal is used to indicate the number of valid bytes on the rdata bus. rmod[1:0]=00 rdata[31:0] valid rmod[1:0]=01 rdata[31:8] valid rmod[1:0]=10 rdata[31:16] valid rmod[1:0]=11 rdata[31:24] valid this signal is updated on the rising edge of rsclk. rmod is only valid when reop is high. in utopia l3, 8-bit pos-phy l2 or 8-bit pos-phy l3 modes, rmod[1:0] signals are held low. in 16-bit pos-phy l2 or 16 bit pos-phy l3 modes, rmod[1] is held low. in pos-phy l2 mode, these signals are driven when one of the ports is selected for data transfer, and tri-stated when ren is deasserted, none of the ports is selected or data path reset is active. in utopia l2 (reset default) mode these signals are tri-stated. in utopia l3 or pos-phy l3 modes these signals are driven.
ds3181/ds3182/ds3183/DS3184 62 of 389 pin type function rerr oz receive packet error (tri-state). this signal is tri-state when global reset is applied. rerr : in pos-phy l2 or pos-phy l3 modes, this signal is used to indicate that the current packet is erred. when rerr is high, the current packet should be aborted. this signal is updated on the rising edge of rsclk. rerr is only valid when reop is high. in utopia l3 mode this signal is held low. in pos-phy l2 mode, this signal is driven when one of the ports is selected for data transfer, and tri-stated when ren is deasserted, none of the ports is selected or data path reset is active. in utopia l2 (reset default) mode this signal is tri-stated. in utopia l3 or pos-phy l3 modes, this signal is driven. microprocessor interface d[15:0] io bidirectional 16- or 8-bit data bus this bus is tri-state when rst pin is low or cs pin is high. d[15:0] : a 16-bit or 8-bit data bus used to input data during register writes, and data outputs during register reads. the upper 8 bits are not used and never driven in 8-bit bus mode. weak pullup resistors or bus holders should be used for each pin. a[10:1] i address bus (minus lsb) a[10:1] : identifies the specific 16 bit registers, or group of 8 bit registers, being accessed. a[10] must be tied to ground for the ds3181 and ds3182 versions. a[0] / bswap address bus lsb / byte swap a[0] : this signal is connected to the lower address bit in 8-bit systems. (width=0) 1 = output register bits 15:8 on d[7:0], d[15:8] not driven 0 = output register bits 7:0 on d[7:0], d[15:8] not driven bswap : this signal is tied high or low in 16-bit systems. (width=1) 1 = output register bits 15:8 on d[7:0], 7:0 on d[15:8] 0 = output register bits 7:0 on d[7:0], 15:8 on d[15:8] ale i address latch enable ale : this signal is used to latch the address on the a[10:0] pins in multiplexed address systems. when it is high the address is fed through the address latch to the internal logic. when it transitions to low, the address is latched and held internally until the signal goes back high. ale should be tied high for non-multiplexed address systems. cs i chip select (active low) cs : this signal must be low during all accesses to the registers rd / ds i read strobe (active low) / data strobe (active low) rd : read strobe mode (mode=0): rd is low during a register read. ds : data strobe mode (mode=1): ds is low during either a register read or a write. wr / r/ w i write strobe (active low) / r/w select wr : write strobe mode (mode=0): wr is low during a register write. r/ w : data strobe mode (mode=1): r/ w is high during a register read cycle, and low during a register write cycle. rdy oz ready handshake (active low) rdy : this ready signal is driven low when the current read or write cycle is in progress. when the current read or write cycle is not ready it is driven high. when device is not selected, it is not driven.
ds3181/ds3182/ds3183/DS3184 63 of 389 pin type function int oz interrupt (active low) this signal is tri-state when rst pin is low. int : this interrupt signal is driven low when an event is detected on any of the enabled interrupt sources in any of the register banks. when there are no active and enabled interrupt sources, the pin can be programmed to either drive high or not drive high. the reset default is to not drive high when there are no active and enabled interrupt source. all interrupt sources are disabled when rst =0 and they must be programmed to be enabled. mode i mode select rd / wr or ds strobe mode mode : 1 = data strobe mode, 0 = read/write strobe mode width i data bus width select 8- or 16-bit interface width : 1 = 16-bits, 0 = 8 bits misc i/o gpio1 io general-purpose io 1 gpio1 : this signal is configured to be a general-purpose io pin, or an alarm output signal for port 1. this pin is an input after reset and should have a pullup resistor on it if not connected to a signal or programmed as an output. gpio2 io general-purpose io 2 gpio2 : this signal is configured to be a general-purpose io pin, or the 8krefo output signal, or an alarm output signal for port 1. this pin is an input after reset and should have a pullup resistor on it if not connected to a signal or programmed as an output. gpio3 io general-purpose io 3 gpio3 : this signal is configured to be a general-purpose io pin, or an alarm output signal for port 2. this pin is an input after reset and should have a pullup resistor on it if not connected to a signal or programmed as an output. gpio4 io general-purpose io 4 gpio4 : this signal is configured to be a general-purpose io pin, or the 8krefi input signal, or an alarm output signal for port 2. when configured for 8krefi mode the signal frequency should be 8,000 hz +/- 500 ppm and about 50% duty cycle. this pin is an input after reset and should have a pullup resistor on it if not connected to a signal or programmed as an output. gpio5 io general-purpose io 5 gpio5 : this signal is configured to be a general-purpose io pin, or an alarm output signal for port 3. this pin is an input after reset and should have a pullup resistor on it if not connected to a signal or programmed as an output. gpio6 io general-purpose io 6 gpio6 : this signal is configured to be a general-purpose io pin, or the tmei input signal, or an alarm output signal for port 3. when configured for tmei input, the signal low time and high time must be greater than 500 ns. this pin is an input after reset and should have a pullup resistor on it if not connected to a signal or programmed as an output. gpio7 io general-purpose io 7 gpio7 : this signal is configured to be a general-purpose io pin, or an alarm output signal for port 4. this pin is an input after reset and should have a pullup resistor on it if connected to a signal or programmed as an output. gpio8 io general-purpose io 8 gpio8 : this signal is configured to be a general-purpose io pin, or the pmu input signal, or an alarm output signal for port 4. when configured for pmu input, the signal low time and high time must be greater than 500 ns.
ds3181/ds3182/ds3183/DS3184 64 of 389 pin type function this pin is an input after reset and should have a pullup resistor on it if not connected to a signal or programmed as an output. test i test enable (active low) test : this signal enables the internal scan test mode when low. for normal operation tie high. this is an asynchronous input. hiz i high-impedance test enable (active low) hiz : this signal puts all digital output and bidirectional pins in the high-impedance state when it low and jtrst is low. for normal operation tie high. this is an asynchronous input. rst i reset (active low) rst : this signal resets all the internal processor registers and logic when low. global and port data path resets are enabled and port power-downs are enabled. this pin should be low while power is applied and set high after the power is stable. this is an asynchronous input. jtag jtclk i jtag clock jtclk : this clock input is typically a low frequency (less than 10 mhz) 50% duty cycle clock signal. jtms ipu jtag mode select (with pullup) jtms : this input signal is used to control the jtag controller state machine and is sampled on the rising edge of jtclk. jtdi ipu jtag data input (with pullup) jtdi : this input signal is used to input data into the register that is enabled by the jtag controller state machine and is sampled on the rising edge of jtclk. jtdo oz jtag data output jtdo : this output signal is the output of an internal scan shift register enabled by the jtag controller state machine and is updated on the falling edge of jtclk. the pin is in the high impedance mode when a register is not selected or when the jtrst signal is high. the pin goes into and exits the high impedance mode after the falling edge of jtclk jtrst ipu jtag reset (active low with pullup) jtrst : this input forces the jtag controller logic into the reset state and forces the jtdo pin into high impedance when low. this pin should be low while power is applied and set high after the power is stable. the pin can be driven high or low for normal operation, but must be high for jtag operation. clad clka i clock a clka : this clock input is a ds3 signal (44.736mhz 20ppm) when the clad is disabled or it is one of the clad reference clock signals when the clad is enabled. clkb io clock b clkb : this pin is a e3 (34.368 mhz 20 ppm) input signal when the clad is disabled (reset default) or it can be enabled to output a generated clock when the clad is enabled. the pin is driven low when it is not selected to output a clock signal and the clad is enabled. refer to table 10-11 . clkc io clock c clkc : this pin is a sts-1 (51.84 mhz 20ppm) input signal when the clad is disabled or it can be enabled to output a generated clock when the clad is enabled. the pin is driven low when it is not selected to output a clock signal and the clad is enabled. refer to table 10-11 .
ds3181/ds3182/ds3183/DS3184 65 of 389 pin type function power vss pwr ground, 0v potential common to digital core, digital io and all analog circuits vdd pwr digital 3.3v common to digital core and digital io avddrn pwr analog 3.3v for receive liu on port n powers receive liu on port n avddtn pwr analog 3.3v for transmit liu on port n powers transmit liu on port n avddjn pwr analog 3.3v for jitter attenuator on port n powers jitter attenuator on port n avddc pwr analog 3.3v for clad powers clock rate adapter common to all ports
ds3181/ds3182/ds3183/DS3184 66 of 389 8.3 pin functional timing 8.3.1 line io 8.3.1.1 b3zs/hdb3/ami mode transmit pin functional timing there is no suggested time alignment between the txpn, txnn and tx line signals and the tlclkn clock signal. the tx data signal is not a readily available signal, it is meant to represent the data value of the other signals. the txpn and txnn signals are only available when the line is in b3zs/hdb3 or ami mode and the liu is enabled. the tposn, tnegn and tlclkn signals are only available when the line is in b3zs/hdb3 or ami mode and the transmit line pins are enabled. the tposn, tnegn and tlclkn pins can be enabled at the same as the liu is enabled. the tposn and tnegn signals change a small delay after the positive edge of the reference clock if the clock pin is not inverted; otherwise they change after the negative edge. the tlclkn clock pin is the clock reference typically used for the tposn and tnegn signals, but they can be time referenced to the tclkin, tclkon, rlclkn or rclkon clock pins. the tposn and tnegn pins can be inverted, but the polarity of txpn and txnn cannot be inverted. txpn and txnn are differential analog output pins. they are biased around ? vdd and pulse above and below the bias voltage by about 1 volt. these signals are connected to the windings of a 1:2 step down transformer and the other winding of the transformer creates the tx line signal. the tx line signal is a bipolar signal that pulses about 1 volt positive and 1 volt negative above and below ground (0 volts). see figure 1-1 for a diagram of the external connections. figure 8-1 and figure 8-2 shows the relationship between the analog and the digital outputs. figure 8-1. tx line io b3 zs functional timing diagram tlclk tpos tneg (tx data) b3zs codeword (tx line) + - txp txn v v b b b v bv 0 v bias v
ds3181/ds3182/ds3183/DS3184 67 of 389 figure 8-2. tx line io hdb3 functional timing diagram tlclk tpos tneg (tx data) hdb3 codeword (tx line) + - txp txn v v b b bv bv 0 v bias v 8.3.1.2 b3zs/hdb3/ami mode receive pin functional timing there is no suggested time alignment between the rxpn, rxnn and rx line signals and the rlclkn clock signal. the rx data signal is not an always readily available signal, it is meant to represent the data value of the other signals. the rxpn and rxnn pins are only available when the line is in b3zs/hdb3 or ami mode and the liu is enabled. the rposn, rnegn and rlclkn pins are only available when the line is in b3zs/hdb3 or ami mode and the liu is disabled. the rposn and rnegn signals are sampled at the rising edge of the reference clock signal if the clock pin is not inverted; otherwise they are sampled at the negative edge. the rlclkn clock pin is the clock reference used for the rposn and rnegn signals. the rposn and rnegn pins can be inverted. rxpn and rxnn are differential analog input pins. they are biased around ? vdd and pulse above and below the bias voltage by about 1 volt with zero cable length. these signals are connected to the windings of a 1:2 step up transformer and the other winding of the transformer is connected to the rx line signal. the rx line signal is a bipolar signal that pulses about 1 volt positive and 1 volt negative above and below ground (0 volts) with zero cable length. see figure 1-1 for a diagram of the external connections. figure 8-3 and figure 8-4 shows the relationship between the analog and the digital outputs. figure 8-3. rx line io b3zs functional timing diagram rlclk rpos rneg (rx data) b3zs codeword (rx line) + - rxp rxn v v b b b v bv 0 v bias v
ds3181/ds3182/ds3183/DS3184 68 of 389 figure 8-4. rx line io hdb3 functional timing diagram rlclk rpos rneg (rx data) hdb3 codeword (rx line) + - rxp rxn v v b b bv bv 0 v bias v 8.3.1.3 uni mode transmit pin functional timing the tdatn pin is available when the line interface is in the uni mode and the transmit line pins are enabled. the tohmon and tohmin pins are available when the framer is in one of the ?- ohm? modes and the transmit line pins are enabled. the line interface is forced into the uni mode when the framer is in one of the ?- ohm? modes. the tohmin pin is used to control the insertion of gaps in the data by stopping the internal formatters and data sources. these gaps are inserted where external logic will add more overhead bits to the signal. the tohmon signal is delayed from the tohmin signal by three clock periods. the tohmon signal aligns to the tdatn signal and is high when internal framing and signal source has stopped inserting data. the tdatn signal should be ignored when tohmon is high. in the ?- ohm octet? framing modes, the first payload bit after the tohmon signal goes low is the msb (bit 1) of a payload octet. the tdatn and tohmon signals change a small delay after the positive edge of the reference clock signal if the clock pin is not inverted, other wise they change after the negative edge. the tohmin signal is sampled at the rising edge of the reference clock signal if the clock pin is not inverted; otherwise it is sampled at the negative edge. the tlclkn clock pin is the clock reference typically used for the tdatn, tohmon and tohmin signals, but they can be time referenced to the tclkin, tclkon, rlclkn or rclkon clock pins. the tdatn, tohmon, and tohmin pins can be inverted. see figure 8-5 and figure 8-6 figure 8-5. tx line io uni ohm functional timing diagram tlclk tdat tohmi tohmo tdat gap for ext overhead insertion figure 8-6. tx line io uni octet aligned ohm functiona l timing diagram tlclk tdat tohmi tohmo atm cell /packet octet n+1 b1 b2 b3 b4 b5 b6 b7 b8 b1 b6 b7 b8 octet n ext oh bit locations
ds3181/ds3182/ds3183/DS3184 69 of 389 8.3.1.4 uni mode receive pin functional timing the rdatn pin is available when the line interface is in the uni mode. the rohmin pin is available when the framer is in one of the ?-ohm? modes. the rlcvn pin is available when the line interface is in the uni mode and the framer is not in one of the ?-ohm? modes. the line interface is forced into the uni mode when the framer is in one of the ?-ohm? modes. the rohmin pin is used to mark the rdatn bits that will be ignored by the internal receive logic. when the rohmin pin is high, the internal framers and data sinks will ignore the corresponding rdatn bits. in the ?- ohm octet? framing modes, the data on rdatn is octet aligned with the rohmin signal, the first bit of the serial data on rdatn is the msb (bit 1) of a payload octet. all bits on the rdatn pin, even the bits that are marked by rohmin, will come out the rsern pin, if the rsern pin is enabled. the signal on the rlcvn pin enables the bpv counter, which is in the line interface, to increment each clock it is high. the rdatn, rohmin and rlcvn signals are sampled at the rising edge of the reference clock signal if the clock pin is not inverted; otherwise they are sampled at the negative edge. the rlclkn clock pin is the clock reference used for the rdatn, rohmin and rlcvn signals. the rdatn, rohmin and rlcvn pins can be inverted. see figure 8-7 and figure 8-8 . figure 8-7. rx line io oh m uni functional timing diagram rlclk rdat rlvc rohm rdat data will be ignored inc bpv counter twice inc bpv counter once figure 8-8. rx line io uni octet aligned ohm functiona l timing diagram rlclk rdat rohm atm cell /packet octet n+1 b1 b2 b3 b4 b5 b6 b7 b8 b1 b6 b7 b8 octet n ext oh bit locations 8.3.2 ds3/e3 framing and plcp overhead functional timing figure 8-9 shows the relationship of the ds3 receive-overhead port pins. figure 8-9. ds3 framing receive overhead port timing roh rohsof rohclk f74 c73 f73 1234567891011121314 161718192021222324 15 f11 c11 x1 f13 c12 f12 c13 f14 f21 c21 x2 f23 c22 f22 c23 f24 f31 c31 p1 c32 f32
ds3181/ds3182/ds3183/DS3184 70 of 389 figure 8-10 shows the relationship of the e3 g.751 receive-overhead port pins. figure 8-10. e3 g.751 framing receive overhead port timing roh rohsof rohclk n a fas 10 1234567891011121314 161718192021222324 15 fas 2 fas 3 fas 1 fas 6 fas 5 fas 4 fas 7 fas 8 fas 10 a fas 9 fas 2 fas 1 n fas 3 fas 4 fas 6 fas 8 fas 5 fas 10 fas 9 figure 8-11 shows the relationship of the e3 g.832 receive-overhead port pins. figure 8-11. e3 g.832 framing receive overhead port timing roh rohsof rohclk gc 8 gc 7 gc 6 1234567891011121314 161718192021222324 15 fa1 2 fa1 3 fa1 1 fa1 6 fa1 5 fa1 4 fa1 7 fa1 8 fa2 2 fa2 3 fa2 1 fa2 6 fa2 5 fa2 4 fa2 7 fa2 8 em 2 em 3 em 1 em 5 em 4 figure 8-12 shows the relationship of the ds3 transmit-overhead port pins. figure 8-12. ds3 framing tran smit overhead port timing toh tohsof tohclk f74 c73 f73 1234567891011121314 161718192021222324 15 f11 x1 f13 c12 f12 c13 f14 f21 c21 x2 f23 c22 f22 c23 f24 f31 c31 p1 c32 f32 tohen c11 figure 8-13 shows the relationship of the e3 g.751 transmit-overhead port pins. figure 8-13. e3 g.751 framing transmit overhead port timing toh tohsof tohclk n a fas 10 1234567891011121314 161718192021222324 15 fas 2 fas 3 fas 1 fas 6 fas 5 fas 4 fas 7 fas 8 fas 10 a fas 9 fas 2 fas 1 n fas 3 fas 4 fas 6 fas 8 fas 5 fas 9 fas 9 tohen
ds3181/ds3182/ds3183/DS3184 71 of 389 figure 8-14 shows the relationship of the e3 g.832 transmit-overhead port pins. figure 8-14. e3 g.832 framing transmit overhead port timing toh tohclk gc 8 gc 7 gc 6 1234567891011121314 161718192021222324 15 fa1 2 fa1 3 fa1 1 fa1 6 fa1 5 fa1 4 fa1 7 fa1 8 fa2 2 fa2 3 fa2 1 fa2 6 fa2 5 fa2 4 fa2 7 fa2 8 em 2 em 3 em 1 em 5 em 4 tohsof tohen figure 8-15 shows the relationship of the ds3 plcp receive-overhead port pins. figure 8-15. ds3 plcp receive overhead port timing rpoh rpohsof rpohclk c1 8 c1 7 c1 6 1234567891011121314 161718192021222324 15 z6 2 z6 3 z6 1 z6 6 z6 5 z6 4 z6 7 z6 8 z5 2 z5 3 z5 1 z5 6 z5 5 z5 4 z5 7 z5 8 z4 2 z4 3 z4 1 z4 5 z4 4 figure 8-16 shows the relationship of the e3 g.751 plcp receiver-overhead port pins. figure 8-16. e3 g.751 plcp receive overhead port timing rpoh rpohsof rpohclk c1 8 c1 7 c1 6 1234567891011121314 161718192021222324 15 z3 2 z3 3 z3 1 z3 6 z3 5 z3 4 z3 7 z3 8 z2 2 z2 3 z2 1 z2 6 z2 5 z2 4 z2 7 z2 8 z1 2 z1 3 z1 1 z1 5 z1 4 figure 8-17 shows the relationship of the ds3 plcp transmit-overhead port pins. figure 8-17. ds3 plcp transmit overhead port timing 1234567891011121314 161718192021222324 15 c1 8 c1 7 c1 6 z6 2 z6 3 z6 1 z6 6 z6 5 z6 4 z6 7 z6 8 z5 2 z5 3 z5 1 z5 6 z5 5 z5 4 z5 7 z5 8 z4 2 z4 3 z4 1 z4 5 z4 4 tpoh tpohclk tpohsof tpohen
ds3181/ds3182/ds3183/DS3184 72 of 389 figure 8-18 shows the relationship of the e3 g.751 plcp transmit-overhead port pins. figure 8-18. e3 g.751 plcp transmit overhead port timing tpoh tpohclk 1234567891011121314 161718192021222324 15 tpohsof tpohen c1 8 c1 7 c1 6 z3 2 z3 3 z3 1 z3 6 z3 5 z3 4 z3 7 z3 8 z2 2 z2 3 z2 1 z2 6 z2 5 z2 4 z2 7 z2 8 z1 2 z1 3 z1 1 z1 5 z1 4 8.3.3 internal (ifrac) and external (xfrac) fractional ds3/e3 overhead functional timing the fractional overhead pins provide the ability to insert bits in the ds3/e3 payload that are not used for cells or packets. the source of fractional overhead bits is controlled by an internal register (see frac.tcr ), specifying internal generation or external sourcing via the tfohenin pin. the allocation of ds3/e3 payload used for cell and packet data is also programmable or controlled by the tfohenin pin. the tsofin, tsofon, tdenn, rsofon and rdenn pins are used to determine which bit positions are ds3/e3 overhead so that fractional overhead bits will be inserted only in ds3/e3 payload. the tclkon and rclkon clocks can be configured for gapped modes that will toggle for each fractional overhead bit, allowing a simple way of using the overhead bits for messaging. figure 8-19 shows the timing with the external fractional transmit port pins. p designates payload bits, f designates fractional overhead, and l designates ds3/e3 overhead, based on tden. figure 8-19. external (xfrac) transmit fractional timing 123456789101112131415161718192021222324 tfoh tfoheni fx1 fx2 fx3 f22 tsofi tsofo tden px5 px6 px5 px6 l1 l2 l2 f11 f12 f13 f21 l1 p11 p12 p13 p14 p15 p15 p21 p22 p23 p24 p25 p26 p11 p12 p13 p14 p15 p16 p21 p22 p23 p24 p25 p26 tclki or tclko figure 8-20 shows the timing with the external fractional receive port pins. figure 8-20. external (xfrac) receive fractional timing 123456789101112131415161718192021222324 rden rfoheni rser rsof l1 p11 p12 p13 p14 p15 p16 p22 p23 py4 py5 py6 l1 fy1 fy2 fy3 f11 f12 f13 l2 f21 py3 l2 p21 p21 p22 p23 p24 p25 p26 p11 p12 p13 p14 p15 p16 py5 py6 py4 rclki or rclko
ds3181/ds3182/ds3183/DS3184 73 of 389 figure 8-21 shows the timing with the internal fractional transmit port pins. figure 8-21. internal (ifrac) transmit fractional timing 123456789 tfoh tfoheno tclki or tclko foh foh foh x x xx x x tgclk 10 11 12 13 14 foh xx x x x 16 17 18 19 20 21 22 23 24 foh foh x x x xx x x foh 15 figure 8-22 shows the timing with the internal fractional transmit port pins. figure 8-22. internal (ifrac) receive fractional timing 123456789 rser rfoheno rclki or rclko foh foh foh x x x x x x rgclk 10 11 12 13 14 foh xx x x x 16 17 18 19 20 21 22 23 24 foh foh xx x xx x foh 15 foh 8.3.4 flexible fractional (ffrac) ds3/e3 overhead interface functinal timing the flexible fractional mode provides the capability to modify the payload data from the cell/packet processor before inserting it into the ds3 or e3 payload. the bit rate of the payload from the cell/packet processor can be less than the ds3 or e3 payload bit rate. the interface to the ds3 or e3 payload uses the tsofin, tsofon, tdenn, tsern, rsofon, rdenn and rsern pins. the interface to the cell/packet processor uses the tpdenin, tpdenon, tpdatn, rpdenin and rpdatn pins. the tpdenin pin is used to determine the bit rate of the transmit cell/packet payload data. the tpdenon pin is high when the data on tpdatn is valid. the delay between tpdenin and tpdenon is three clocks. the rpdenin pin is used to determine the bit rate of the receive cell/packet processor data. the cell/packet processor uses the cell/packet data on the rpdatn pin when the rpdenin pin is high.
ds3181/ds3182/ds3183/DS3184 74 of 389 figure 8-23 shows the timing with the flexible fractional transmit port pins. figure 8-23. transmit flexible fractional (ffrac) timing tpdeni tclki or tclko tsofi tsofo tden tser tpdat p4 p5 p6 p17 p2 p3 p13 p10 p11 p12 p16 p14 p8 p9 p14 p15 tpdeno p1 fox foy foz fo5 fpy fpz oh2 fo1 fo2 fo3 fo4 oh1 fp1 fp2 fp3 fp4 fp5 fp6 fp7 fp8 fp9 fp10 fp11 fp12 fpx 1 2 3 4 5 6 7 8 9 101112131415161718192021222324 figure 8-24 shows the timing with the flexible fractional receive port pins. figure 8-24. receive flexible fractional (ffrac) timing rden rpdeni rser rsofo oh1 fo1 fo2 fo3 fo4 fo5 fo6 oh2 fp19 fp13 fp14 fp15 fp16 fp17 fp18 fp7 fp8 fp9 fp10 fp11 fp12 fp5 fp6 fp4 rclki or rclko 123456789101112131415161718192021222324 rser x x p3 p13 p14 p15 p16 p1 p2 p7 p8 p9 p10 p11 p12 p5 p6 p4 x
ds3181/ds3182/ds3183/DS3184 75 of 389 8.3.5 utopia/pos-phy/spi-3 system interface functional timing 8.3.5.1 utopia level 2 functional timing figure 8-25 shows a multidevice transmit-interface multiple cell transfer to different phy devices. on clock edge 2, the atm device places address ?00h? on the address bus (which is mapped to port 1). phy device '1' (port 1) indicates to the atm device that it can accept cell data by asserting tdxa[1]. on clock edge 4, the atm device selects phy device '1'. on clock edge 5, the atm device starts a cell transfer to phy device '1' by asserting ten , placing the first byte of cell data on tdata, and asserting tsox to indicate the transfer of the first byte of the cell. on clock edge 6, the atm device deasserts tsox as it continues to place additional bytes of the cell on tdata.. on clock edge 13, phy device ?2? asserts tdxa[2] to indicate to the atm device that it is ready to accept cell data. on clock edge 15, phy device '1? indicates that it cannot accept the transfer of a complete cell by deasserting tdxa[1]. on clock edge 16, the atm device deselects phy device '1' and selects phy device '2' by deasserting ten and placing phy device '2's address on tadr. on clock edge 17, the atm device starts the transfer of a cell to phy device '2' by asserting ten , placing the first byte of cell data on tdata, and asserting tsox to indicate the transfer of the first byte of the cell. on clock edge 18, the atm device deasserts tsox as it continues to place additional bytes of the cell on tdata. figure 8-25. utopia level 2 transmit cell transfer direct mode tadr 1 ten tdata tsox 19 20 ? tclk h3 p43 p44 p45 p46 p47 p48 p42 h1 h2 01h 00h transfer cell to: port 1 h2 h3 h4 port 2 h1 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 tdxa[1] tdxa[2] tdxa[3] tdxa[4]
ds3181/ds3182/ds3183/DS3184 76 of 389 figure 8-26 shows a multidevice transmit-interface multiple cell transfer to different phy devices. on clock edge 2, the atm device places address ?00h? on the address bus (which is mapped to port 1). phy device '1' (port 1) indicates to the atm device that it has a complete cell to send by asserting rdxa[1]. on clock edge 4, the atm device selects phy device '1'. on clock edge 5, the atm device asserts ren. on clock edge 6, the phy device ?1? starts a cell transfer to the atm device by placing the first byte of cell data on rdata, and asserting rsox to indicate the transfer of the first byte of the cell. on clock edge 7, the phy device deasserts rsox as it continues to place additional bytes of the cell on rdata. on clock edge 13, phy device ?2? asserts rdxa[2] to indicate to the atm device that it is ready to send a cell. on clock edge 15, phy device '1? indicates that it cannot transfer a complete cell by deasserting rdxa[1]. on clock edge 16, the atm device deselects phy device '1' and selects phy device '2' by deasserting ren and placing phy device '2's address on radr. on clock edge 17, the atm device asserts ren. on clock edge 18, phy device ?2? (port 2) starts the transfer of a cell to the atm device by placing the first byte of cell data on rdata, and asserting rsox to indicate the transfer of the first byte of the cell. on clock edge 18, the phy device deasserts rsox as it continues to place additional bytes of the cell on rdata. figure 8-26. utopia level 2 receive cell transfer direct mode radr 1 ren rdata rsox 19 20 ? rsclk h3 p43 p44 p45 p46 p47 p48 p42 h1 h2 01h 00h transfer cell from: port 1 h2 h3 port 2 h1 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 rdxa[1] rdxa[2] rdxa[3] rdxa[4] figure 8-27 shows a multidevice transmit-interface multiple cell transfer to different phy devices. on clock edge 2, the atm device polls phy device 'n'. on clock edge 3, phy device 'n' indicates to the atm device that it can accept cell data by asserting tpxa. on clock edge 4, the atm device selects phy device 'n'. on clock edge 5, the atm device starts a cell transfer to phy device 'n' by asserting ten , placing the first byte of cell data on tdata, and asserting tsox to indicate the transfer of the first byte of the cell. on clock edge 6, the atm device deasserts tsox as it continues to place additional bytes of the cell on tdata. on clock edge 6, the atm device also polls phy device 'o'. on clock edge 7, phy device 'o' indicates that it can accept the transfer of a complete cell. on clock edge 14, the atm device polls phy device 'n'. on clock edge 15, phy device 'n' indicates that it cannot accept the transfer of a complete cell. on clock edge 16, the atm device deselects phy device 'n' and selects phy device 'o' by deasserting ten and placing phy device 'o's address on tadr. on clock edge 17, the atm device starts the transfer of a cell to phy device 'o' by asserting ten , placing the first byte of cell data on tdata, and asserting tsox to indicate the transfer of the first byte of the cell. on clock edge 18, the atm device deasserts tsox as it continues to place additional bytes of the cell on tdata.
ds3181/ds3182/ds3183/DS3184 77 of 389 figure 8-27. utopia level 2 transmit multiple cell transfer polled mode tadr 1 tpxa ten tdata tsox 19 20 ? tclk h3 p43 p44 p45 p46 p47 p48 p42 h1 h2 1f 1f n 1f 1f o 1f l 1f m 1f n 1f o 1f p 1f l n m n n o p l m n o p m ? transfer cell to: n h2 h3 h4 o h1 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 figure 8-28 shows a multidevice receive-interface multiple cell transfer from different phy devices. on clock edge 2, the atm device polls phy device 'n'. on clock edge 3, phy device 'n' indicates to the atm device that it has a complete cell ready for transfer by asserting rpxa. on clock edge 4, the atm device selects phy device 'n'. on clock edge 5, the atm device asserts ren . on clock edge 6, phy device 'n' starts a cell transfer by placing the first byte of cell data on rdata, and asserting rsox to indicate the transfer of the first byte of the cell. on clock edge 7, phy device 'n' deasserts rsox as it continues to place additional bytes of the cell on rdata. on clock edge 12, the atm device polls phy device 'o'. on clock edge 13, phy device 'o' indicates to the atm device that it has a complete cell ready for transfer by asserting rpxa. on clock edge 16, the atm device deselects phy device 'n' and selects phy device 'o' by deasserting ren and placing phy device 'o's address on radr. on clock edge 17, the atm device asserts ren and phy device 'n' stops transferring cell data and tri-states its rdata and rsox outputs. on clock edge 18, phy device 'o' starts a cell transfer by placing the first byte of cell data on rdata, and asserting rsox to indicate the transfer of the first byte of the cell. on clock edge 19, phy device 'o' deasserts rsox as it continues to place additional bytes of the cell on rdata. figure 8-28. utopia level 2 receive multiple cell transfer polled mode radr 1 rpxa ren rdata rsox 19 20 ? rclk 1f 1f n 1f 1f o 1f m 1f o 1f p 1f o 1f n 1f p n m n n o l m o p o n m ? h1 h2 transfer cell from: n h3 o h2 h1 p43 p44 p45 p46 p47 p48 p42 p41 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 figure 8-29 shows a multidevice receive-interface unexpected multiple cell transfer. prior to clock edge 1, the cell transfer was started. on clock edge 4, since no other phy device has a cell ready for transfer, the atm device assumes another cell transfer from phy device 'n' and leaves ren asserted. on clock edge 5, phy device 'n' stops transferring cell data and indicates that it does not have another cell ready for transfer by not asserting rsox. on clock edge 6, the atm device deasserts ren to end the cell transfer process. at the same time, phy device 'n' indicates to the atm device that it now has a complete cell ready for transfer by placing the first byte of cell data on rdat, and asserting rsox to indicate the transfer of the first byte of the cell. on clock edge 7, phy device 'n' tri-states its rdat and rsox outputs because ren is deasserted. on clock edge 8, the atm device
ds3181/ds3182/ds3183/DS3184 78 of 389 selects phy device 'n'. on clock edge 9, the atm device asserts ren . on clock edge 10, phy device 'n' continues the cell transfer by placing the second byte of cell data on rdat, and deasserting rsox. figure 8-29. utopia level 2 receive unexpected multiple cell transfer radr 1 rpxa ren* rdat rsox 19 20 rclk 1f 1f n 1f 1f o 1f p 1f l 1f m 1f o 1f p 1f l m l m n o n p l m o p l transfer cell from: n p45 p46 p47 p48 x h1 23 4 5 7 6 8 10 11 12 13 14 15 16 17 18 9 n h2 p2 p1 h3 h4 p6 p5 p3 p4 p7 p8 n n
ds3181/ds3182/ds3183/DS3184 79 of 389 8.3.5.2 utopia level 3 functional timing figure 8-30 shows a multiport transmit-interface multiple cell transfer to different phy devices. phy port '1', ?3?, ?4? indicate to the atm device that they can accept cell data by asserting the tdxa[n]. on clock edge 2, the atm device selects phy port '1' by putting address ?00h? on the address bus. on clock edge 5, the atm device starts a cell transfer to phy port '1' by asserting ten , placing the first byte of cell data on tdata, and asserting tsox to indicate the transfer of the first byte of the cell. on clock edge 6, the atm device deasserts tsox as it continues to place additional bytes of the cell on tdata. on clock edge 13, phy port ?2? asserts tdxa[2] to indicate it is ready to accept a cell. on clock edge 15, phy port ?1? deasserts tdxa[1] to indicate to the atm device that it does not have the availability to receive another complete cell. on clock edge 16, the atm device selects phy port '2' by deasserting ten and placing phy port '2's address on tadr. on clock edge 17, the atm device starts the transfer of a cell to phy port '2' by asserting ten , placing the first byte of cell data on tdata, and asserting tsox to indicate the transfer of the first byte of the cell. on clock edge 18, the atm device deasserts tsox as it continues to place additional bytes of the cell on tdata. figure 8-30. utopia level 3 transmit multiple cell transfer direct mode tadr 1 ten tdata tsox 19 20 ? tsclk h3 p43 p44 p45 p46 p47 p48 p42 h1 h2 01h 00h transfer cell to: port 1 h2 h3 h4 port 2 h1 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 tdxa[1] tdxa[2] tdxa[3] tdxa[4] figure 8-31 shows a multiport transmit-interface multiple cell transfer to different phy devices. on clock edge 1, the atm device polls phy port 'n'. on clock edge 3, phy port 'n' indicates to the atm device that it can accept cell data by asserting tpxa. on clock edge 5, the atm device selects phy port 'n'. on clock edge 6, the atm device starts a cell transfer to phy port 'n' by asserting ten , placing the first byte of cell data on tdata, and asserting tsox to indicate the transfer of the first byte of the cell. on clock edge 7, the atm device deasserts tsox as it continues to place additional bytes of the cell on tdata. on clock edge 11, the atm device polls phy port 'm'. on clock edge 12, the atm device polls phy port 'n'. on clock edge 13, phy port 'm' indicates that it can accept the transfer of a complete cell. on clock edge 14, phy port 'n' indicates that it cannot accept the transfer of a complete cell. on clock edge 16, the atm device deselects phy port 'n' and selects phy port 'm' by deasserting ten and placing phy port 'm's address on tadr. on clock edge 17, the atm device starts the transfer of a cell to phy port 'm' by asserting ten , placing the first byte of cell data on tdata, and asserting tsox to indicate the transfer of the first byte of the cell. on clock edge 18, the atm device deasserts tsox as it continues to place additional bytes of the cell on tdata.
ds3181/ds3182/ds3183/DS3184 80 of 389 figure 8-31. utopia level 3 transmit multiple cell transfer polled mode tadr 1 tpxa ten tdata tsox 19 20 tclk p44 p45 p46 p47 p48 p43 x n p q n l m n o p q r j k l o lnp kmoqr m transfer cell to: n 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 mjlnpxj x x x x x h3 h2 r k j oqr ? ? x h1 k m x h1 h2 h3 p1 ? m figure 8-32 shows a multiport receive-interface multiple cell transfer from different phy ports. on clock edge 3, phy port 'n' indicates to the atm device that it has a complete cell ready for transfer by asserting rpxa. on clock edge 5, the atm device selects phy port 'n'. on clock edge 6, the atm device indicates to phy port 'n' that it is ready to accept a complete cell transfer by asserting ren . on clock edge 8, phy port 'n' starts a cell transfer by placing the first byte of cell data on rdata, and asserting rsox to indicate the transfer of the first byte of the cell. on clock edge 9, phy port 'n' deasserts rsox as it continues to place additional bytes of the cell on rdat. on clock edge 11, the atm device polls phy device 'n'. on clock edge 12, phy port 'm' indicates to the atm device that it has a complete cell ready for transfer by asserting rpxa. on clock edge 12, phy port 'n' indicates to the atm device that it does not have a complete cell ready for transfer by deasserting rpxa. on clock edge 15, the atm device deselects phy port 'n' and selects phy port 'm' by deasserting ren and placing phy port 'm's address on radr. on clock edge 16, the atm device asserts ren . on clock edge 17, phy port 'n' stops transferring cell data. on clock edge 18, phy port 'm' starts a cell transfer by placing the first byte of cell data on rdata, and asserting rsox to indicate the transfer of the first byte of the cell. on clock edge 19, phy port 'm' deasserts rsox as it continues to place additional bytes of the cell on rdata.
ds3181/ds3182/ds3183/DS3184 81 of 389 figure 8-32. utopia level 3 receive multiple cell transfer direct mode radr 1 ren rdata rsox 19 20 ? rsclk h3 p43 p44 p45 p46 p47 p48 p42 h1 h2 01h 00h transfer cell from: port 1 h2 h3 port 2 h1 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 rdxa[1] rdxa[2] rdxa[3] rdxa[4] figure 8-33 shows a multiport receive-interface multiple cell transfer from different phy ports. on clock edge 1, the atm device polls phy port 'n'. on clock edge 3, phy port 'n' indicates to the atm device that it has a complete cell ready for transfer by asserting rpxa. on clock edge 5, the atm device selects phy port 'n'. on clock edge 6, the atm device indicates to phy port 'n' that it is ready to accept a complete cell transfer by asserting ren . on clock edge 8, phy port 'n' starts a cell transfer by placing the first byte of cell data on rdata, and asserting rsox to indicate the transfer of the first byte of the cell. on clock edge 9, phy port 'n' deasserts rsox as it continues to place additional bytes of the cell on rdat. on clock edge 11, the atm device polls phy device 'n'. on clock edge 12, phy port 'm' indicates to the atm device that it has a complete cell ready for transfer by asserting rpxa. on clock edge 12, phy port 'n' indicates to the atm device that it does not have a complete cell ready for transfer by deasserting rpxa. on clock edge 15, the atm device deselects phy port 'n' and selects phy port 'm' by deasserting ren and placing phy port 'm's address on radr. on clock edge 16, the atm device asserts ren . on clock edge 17, phy port 'n' stops transferring cell data. on clock edge 18, phy port 'm' starts a cell transfer by placing the first byte of cell data on rdata, and asserting rsox to indicate the transfer of the first byte of the cell. on clock edge 19, phy port 'm' deasserts rsox as it continues to place additional bytes of the cell on rdata. figure 8-33. utopia level 3 receive multiple cell transfer polled mode radr 1 rpxa ren rdat rsox 19 20 rclk x n p q n l j m o lnp m m transfer cell from: 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 mj k x x x x x r k j oqr ? n n x h2 ? h1 k x x p1 ? n o p q r moq lnp p44 p45 p46 p47 p48 p43 m k l j r h1 h2 m
ds3181/ds3182/ds3183/DS3184 82 of 389 8.3.5.3 pos-phy level 2 functional timing figure 8-34 shows a multidevice transmit interface in byte transfer mode multiple packet transfer to different phy ports. prior to clock edge 1, the pos device started a packet transfer to phy port '1'. on clock edge 2, phy port '1' deasserts its tdxa to indicate to the pos device that it cannot accept any more data transfers. on clock edge 3, the pos device stops the packet transfer to phy port '1', and starts a packet transfer to phy port '2' by leaving ten asserted, placing phy port '2's address on tadr, placing the first byte of packet data on tdata, and asserting tsox to indicate the transfer of the first byte of the packet. on clock edge 7, phy port '2' deasserts its tdxa to indicate to the pos device that it cannot accept any more data transfers. on clock edge 8, the pos device stops the packet transfer to phy port '2', and resumes a packet transfer to phy port '3'. on clock edge 12, phy port '2' indicates to the pos device that it can accept a block of packet data by asserting its tdxa. also, the pos device indicates it is transferring the last byte of packet data by asserting teop. on clock edge 13, the pos device ends the packet transfer to phy port '3', and starts a packet transfer to phy port '4'. on clock edge 15, phy port '1' indicates to the pos device that it can accept a block of packet data. on clock edge 17, phy port '4' deasserts its tdxa to indicate to the pos device that it cannot accept any more data transfers. on clock edge 18, the pos device stops the packet transfer to phy port '4', and resumes a packet transfer to phy port '1'. figure 8-34. transmit multiple packet transfer to different phy ports (direct status mode) p36 p37 p38 '1' ten tsox teop terr tdata tclk tdxa[1] tadr tdxa[2] tdxa[3] tdxa[4] 1 19 20 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 transfer to port p34 p19 p20 p49 p63 p1 p2 ? '3' p64 '4' ? p50 '1' p1 p2 p41 ? p42 p35 '2' '1' '2' '3' '4' '1' figure 8-35 shows a multidevice receive interface in byte transfer mode multiple packet transfer from different phy ports/devices. prior to clock edge 1, a packet data transfer was initiated from phy port '1', and phy ports '2', '3', and '4' indicated to the pos device that they have a block of packet data or an end of packet ready for transfer by asserting their rdxa. on clock edge 2, the pos device indicates to phy port '1' that it cannot accept any more data transfers by removing its address from radr, and indicates to phy port '2' that it is ready to accept a block of packet data by placing its address on radr and leaving ren asserted. on clock edge 3, phy port '1' stops transferring packet data, and phy port '2' starts a packet transfer by leaving rval asserted, placing the first byte of the packet on rdata, and asserting rsox to indicate that this is the first transfer of the packet. on clock edge 4, phy port '2' deasserts rsox as it leaves rval asserted and continues to place additional bytes of the packet on rdata. on clock edge 8, the pos device deasserts ren to indicate to phy port '2' that it cannot accept any more data transfers. on clock edge 9, phy port '2' ends the packet transfer process by deasserting rval and tri- stating its rval, rdata, rsox, reop, and rerr outputs. and, the pos device indicates to phy port '3' that it is ready to accept a block of packet data by placing its address on radr and reasserting ren . on clock edge 10,
ds3181/ds3182/ds3183/DS3184 83 of 389 phy port '3' continues a packet transfer by asserting rval and placing the next byte of packet data on rdata. on clock edge 14, phy port '3' places the last byte of the packet on rdata, and asserts reop to indicate that this is the last transfer of the packet. on clock edge 15, phy port '3' deasserts rval and reop ending the packet transfer process, as well as, deasserting rdxa to indicate that it does not have another block of packet data or an end of packet ready for transfer. on clock edge 16, the pos device indicates to phy port '4' that it is ready to accept a block of packet data by placing its address on radr and leaving ren asserted. on clock edge 17, phy port '4' starts a packet transfer by leaving rval asserted, placing the first byte of the packet on rdata, and asserting rsox to indicate that this is the first transfer of the packet. on clock edge 18, phy port '4' deasserts rsox as it leaves rval asserted and continues to place additional bytes of the packet on rdata. figure 8-35. pos-phy level 2 receive multiple packet transfer from different phy ports/devices (direct status mode) rclk rdxa [1] radr rdxa [2] rdxa [3] rdxa [4] 1 19 20 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 rsox reop rerr rdata transfer from phy rval ren p34 p1 p2 p41 ? p42 p35 '4' 1f '3' '1' '2' ? p19 p20 p2 p63 x x p64 p3 '1' '2' '3' '4' p4 p43 p1 figure 8-36 shows a multidevice transmit interface in packet transfer mode multiple packet transfer to different phy ports. on clock edge 2, the pos device polls phy port 'n'. on clock edge 3, phy port 'n' indicates to the pos device that it can accept a block of packet data by asserting tpxa. on clock edge 4, the pos device selects phy port 'n'. on clock edge 5, the pos device starts a packet transfer to phy port 'n' by asserting ten , placing the first byte of packet data on tdata, and asserting tsox to indicate the transfer of the first byte of the packet. on clock edge 6, the pos device deasserts tsox as it continues to place additional bytes of the packet on tdata. and, phy port 'n' drives its tspa output high. on clock edge 10, the pos device polls phy port 'm'. on clock edge 11, the pos device asserts teop to indicate the transfer of the last byte of the packet to phy port 'n' and phy port 'm' indicates to the pos device that it can accept a block of packet data by asserting tpxa. on clock edge 12, the pos device deasserts ten to end the packet transfer process to phy port 'n' and selects phy port 'm'. on clock edge 13, the pos device starts a packet transfer to phy port 'm' by asserting ten , placing the first byte of packet data on tdata, and asserting tsox to indicate the transfer of the first byte of the packet. and, phy port 'n' tri- states its tspa output. on clock edge 14, the pos device deasserts tsox as it continues to place additional bytes of the packet on tdata. and, phy port 'm' drives its tspa output high.
ds3181/ds3182/ds3183/DS3184 84 of 389 figure 8-36. pos-phy level 2 transmit multiple packet transfer to different phy ports (polled status mode) tclk tadr tpxa 1f 1f n 1f 1f o 1f m 1f m 1f n 1f o 1f p 1f l n ? m n nolm 1 19 20 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 x p5 x x p6 p7 p8 x ten tsox teop terr tdat transfer to phy p1 p2 p3 ? p62 p63 p64 x p1 p2 p3 p4 n m n o p tspa m figure 8-37 shows a multidevice receive interface in packet transfer mode multiple packet transfer. on clock edge 2, the pos device polls phy port 'n'. on clock edge 3, phy port 'n' indicates to the pos device that it has a block of packet data or an end of packet ready for transfer by asserting rpxa. on clock edge 4, the pos device selects phy port 'n'. on clock edge 5, the pos device indicates to phy port 'n' that it is ready to accept a block of packet data by placing its address on radr and asserting ren . on clock edge 6, phy port 'n' starts packet transfer by asserting rval, placing the first byte of the packet on rdata, and asserting rsox to indicate that this is the first transfer of the packet. on clock edge 7, phy port 'n' deasserts rsox as it leaves rval asserted and continues to place additional bytes of the packet on rdata. on clock edge 14, phy port 'n' places the last byte of the packet on rdata, and asserts reop to indicate that this is the last transfer of the packet. on clock edge 15, phy port 'n' deasserts rval and reop ending the packet transfer process. on clock edge 16, the pos device deasserts ren and selects phy port 'p'. on clock edge 17, phy port 'n' tri-states its rval, rdata, rsox, reop, and rerr outputs and the pos device indicates to phy port 'p' that it is ready to accept a block of packet data by placing its address on radr and asserting ren . on clock edge 18, phy port 'p' starts packet transfer by asserting rval, placing the first byte of the packet on rdata, and asserting rsox to indicate that this is the first transfer of the packet. on clock edge 19, phy port 'p' deasserts rsox as it leaves rval asserted and continues to place additional bytes of the packet on rdata. while this example shows a different phy port ('p') being selected for the next packet transfer, the timing is identical if the same phy port ('n') is chosen for the next packet transfer.
ds3181/ds3182/ds3183/DS3184 85 of 389 figure 8-37. pos-phy level 2 receive multiple packet transfer (polled status mode) rclk rpxa radr 1 19 20 2345 7 68 10 11 12 13 14 15 16 17 18 9 ? p4 p61 p62 p63 rsox reop rerr rdat transfer from phy n rval ren p2 p1 1f 1f n 1f 1f o 1f 1f m 1f o 1f p 1f l 1f m n ? m n nop l m o p l p p3 p3 p64 x x p p2 p1
ds3181/ds3182/ds3183/DS3184 86 of 389 8.3.5.4 pos-phy level 3 functional timing figure 8-38 shows a multiport transmit interface multiple packet transfer to different phy ports. on clock edge 1, phy port 'n' indicates to the pos device that it can a ccept a block of packet data by asserting tpxa. on clock edge 3, the pos device selects phy port 'n' by placing its address on tdata and asserting tsx while ten is deasserted. on clock edge 4, the pos device starts a packet transfer to phy port 'n' by deasserting tsx, asserting ten , placing the first byte of packet data on tdata, and asserting tsox to indicate the transfer of the first byte of the packet. on clock edge 5, the pos device deasserts tsox as it continues to place additional bytes of the packet on tdata and phy port 'n' asserts tspa. on clock edge 11, the pos device polls phy port 'l'. on clock edge 12, phy port 'n' indicates that it cannot accept any more data transfers by deasserting tspa. on clock edge 13, phy port 'l' indicates to the pos device that it can accept a block of packet data by asserting tpxa. on clock edge 14, the pos device deasserts ten to end the packet transfer process to phy port 'n' and selects phy port 'l' by placing its address on tdata and asserting tsx while ten is deasserted. on clock edge 15, the pos device starts a packet transfer to phy port 'l' by asserting ten , deasserting tsx, placing the first byte of packet data on tdata, and asserting tsox to indicate the transfer of the first byte of the packet. on clock edge 16, the pos device deasserts tsox as it continues to place additional bytes of the packet on tdata and phy port 'l' asserts tspa. figure 8-38. pos-phy level 3 transmit multiple packet transfer in-band addressing m n o l p p39 p38 pmo ln p40 p41 p42 tclk tadr tpxa p m n o p l m n op l n 1 19 20 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 x p5 p6 x ten teop terr tdat transfer to phy n lnpm tspa opmol n p43 tsox p44 l p1 p2 p3 p4 tsx m o ? m l n ? n p1 p2 ? p l figure 8-39 shows a multiport receive-interface multiple packet transfer from different ports. on clock edge 1, the pos device indicates to phy port 'n' that it is ready to accept a block of packet data by asserting ren . on clock edge 3, the phy device selects port 'n' for transfer by asserting rsx and placing its address on rdata. on clock edge 4, phy port 'n' starts packet transfer by deasserting rsx, asserting rval, placing the first byte of the packet on rdata, and asserting rsox to indicate that this is the first transfer of the packet. on clock edge 5, phy port 'n' deasserts rsox as it leaves rval asserted and continues to place additional bytes of the packet on rdata. on clock edge 10, phy port 'n' places the last byte of the packet on rdata, and asserts reop to indicate that this is the last transfer of the packet. on clock edge 11, the phy device deasserts rval and reop ending the packet transfer process from port 'n' and selects phy port 'l' for transfer by asserting rsx and placing its address on rdata. on clock edge 12, phy port 'l' starts packet transfer by deasserting rsx, asserting rval, placing the first byte of the packet on rdata, and asserting rsox to indicate that this is the first transfer of the packet. on clock edge 13, phy port 'l' deasserts rsox as it leaves rval asserted and continues to place additional bytes of the packet on rdata.
ds3181/ds3182/ds3183/DS3184 87 of 389 figure 8-39. pos-phy level 3 receive multiple packet transfer in-band addressing transfer from phy n l rclk 1 19 20 2345 7 6 8 10 11 12 13 14 15 16 17 18 9 rdat rsox reop rerr x n p1 p2 ? p62 p63 p64 l p9 ren rval p3 rsx p1 p2 p3 p4 p5 p6 p7 p8
ds3181/ds3182/ds3183/DS3184 88 of 389 8.3.6 microprocessor interface functional timing figure 8-40 and figure 8-42 shows examples of a 16-bit databus and an 8-bit databus, respectively. in 16-bit mode, the a[0]/bswap signal controls whether or not to byte swap. in 8-bit mode, the a[0]/bswap signal is used as the lsb of the address bus (a[0]). the selection of databus size is determined by the width input signal. see also section 10.1.1 . figure 8-40. 16-bit mode write 0x1234 0x2b0 d[15:0] a[10:1] rd wr cs a[0]/bswap rdy z z note: address 0x2b0 = 0x1234 figure 8-41. 16-bit mode read d[15:0] a[10:1] a[0]/bswap 0x2b0 0x1234 z z note: address 0x2b0 = 0x1234 rd wr cs rdy
ds3181/ds3182/ds3183/DS3184 89 of 389 figure 8-42. 8-bit mode write 0x34 0x12 0x2b0 0x2b0 d[7:0] a[10:1] a[0]/bswap z z z z note: address 0x2b0 = 0x34 0x2b1 = 012 rd wr cs rdy figure 8-43. 8-bit mode read d[7:0] a[10:1] a[0]/bswap 0x2b0 0x34 z z 0x2b0 0x12 z z note: address 0x2b0 = 0x34 0x2b1 = 012 rd wr cs rdy figure 8-44 and figure 8-45 are examples of databuses without and with byte swapping enabled, respectively. when the a[0]/bswap pin is set to 0, byte swapping is disabled, and when one, byte swapping is enabled. this pin should be static and not change while operating. note: address bit a[0] is not used in 16-bit mode. see also section 10.1.2.
ds3181/ds3182/ds3183/DS3184 90 of 389 figure 8-44. 16-bit mode without byte swap 0x1234 0x5678 note: address 0x2b0 = 0x1234 0x2b2 = 0x5678 0x2b0 0x2b2 d[15:0] a[10:1] a[0]/bswap z z z z rd wr cs rdy figure 8-45. 16-bit mode with byte swap 0x3412 0x7856 note: address 0x2b0 = 0x1234 0x2b2 = 0x5678 0x2b0 0x2b2 d[15:0] a[10:1] a[0]/bswap z z z z rd wr cs rdy clearing status latched registers on a read or write access is selectable via the gl.cr1 .lsbcre register bit. clearing on read clears all bits in the register, while the clear on write clears only those bits which are written with a ?1? when the user writes to the status latched register. to use the clear on read method, the user must only read the status latched register. all bits are set to zero after the read. figure 8-46 shows a read of a status latched register and another read of the same register verifying the register has cleared. to use the clear on write method, the user must write the register with ones in the bit locations that he desires to clear. figure 8-47 shows a read, a write, and then a subsequent read revealing the results of clearing of the bits that he wrote a ?1?. see also section 10.1.5
ds3181/ds3182/ds3183/DS3184 91 of 389 figure 8-46. clear status latched register on read d[15:0] a[10:1] a[0]/bswap 0x1c0 0xffff 0x1c0 0x0000 z z z z rd wr cs rdy figure 8-47. clear status latched register on write d[15:0] a[10:1] a[0]/bswap 0x1c0 0xffff 0x1c0 0x5555 0x1c0 0xaaaa z z z z z z rd wr cs rdy figure 8-48 and figure 8-49 show exaggerated views of the ready signal to describe the difference in access times to write or read to or from various memory locations on the ds318x device. some registers will have a faster access time than others will and if needed, the user can implement the rdy signal to maximize efficiency of read and write accesses.
ds3181/ds3182/ds3183/DS3184 92 of 389 figure 8-48. rdy signal functional timing writes 0x1234 0x0078 0x2b0 0x3a4 d[15:0] a[10:1] a[0]/bswap z z z z rd wr cs rdy figure 8-49. rdy signal functional timing read d[15:0] a[10:1] a[0]/bswap 0x1c0 0xffff 0x3a4 0xffff z z z z rd wr cs rdy see also figure 18-7 and figure 18-8 . 8.3.7 jtag functional timing see section 13.5 .
ds3181/ds3182/ds3183/DS3184 93 of 389 9 initialization and configuration step 1: check device id code. before any testing can be done, the device id code, which is stored in gl.idr, should be checked against device id codes shown below to ensure that the correct device is being used. current device id codes are: o ds3181 rev 1.0: 0048h o ds3182 rev 1.0: 0049h o ds3183 rev 1.0: 004ah o DS3184 rev 1.0: 004bh step 2: initialize the device. before configuring for operation, make sure the device is in a known condition with all registers set to their default value by initiating a global reset. (see section 10.3 ) a global reset can be initiated via the rst pin or by the global reset bit ( gl.cr1 .rst). a port reset is not necessary since the global reset includes a reset of all ports to their default values. step 3: clear the reset. it is necessary to clear the rst bit to begin normal operation. after clearing the rst bit, the device is configured for default mode. default mode: system interface: utopia level 2, 8-bit databus framer: c-bit ds3 liu: disabled step 4: clear the data path resets and the port power-down bit. the default value of the data path resets is one, which keeps the internal logic in the reset status. the user needs to clear the following bits: gl.cr1 .rstdp = 0 port.cr1 .rstdp = 0 port.cr1 .pd = 0 step 5: configure the clad. if using the liu, configure the clad (the clock rate adapter, which supplies the clock to the receive liu) via the clad bits in the gl.cr2 register. note: the user must supply a ds3, e3, or sts-1 clock to the clka pin. step 6: select the clock source for the transmitter. loop time (use the receive clock): set port.cr3 .loopt = 1 clad source: set port.cr3 .cladc = 0 tclki source: set port.cr3 .cladc = 1 if using the clad, properly configure the clad by setting the clad bits in gl.cr2. step 7: configure the framing mode and the line mode. port . cr2 .lm[2:0] = 011 -liu on, ja in rx side-or another setting. see table 10-33 . port.cr2. fm[5:0] set to the correct framing mode. see table 10-32 . step 8: disable payload ais (downstream ais) and line ais port . cr1 .pais[2:0] = 111 port .cr1.lais[1:0] = 11 step 9: initialize and configure the fifos. reset the transmit and receive fifo.
ds3181/ds3182/ds3183/DS3184 94 of 389 ff.tcr .tfrst = 1. ff.rcr .rfrst = 1. clear the fifo reset bits. ff.tcr .tfrst = 0. ff.rcr .rfrst = 0. set the fifo transmit level control register and the fifo transmit port address control register. set the fifo receive level control register and the fifo receive port address control register. the port address needs to be configured to match the master controller address for each port. step 10: configure the system bus configure for bus size and for interface type. see table 9-1 . optionally, set the system interface transmit control register, system interface receive control register #1 and #2 to fine tune for the specific application. (user may leave registers at default value.) step 11: configure the cell or packet processor for cell mode, the default is to send the cell across the system interface without the hec. also, default mode scrambles the cell data to the line. to attach the hec to the cell, set si.tcr .thect = 1 and si.rcr .rhect = 1. step 12: enable each port (for non-liu modes) port . cr2 .tlen = 1 table 9-1. configuration of global register settings note: this table assumes a ds3 clock input on the clka pin. mode gl.cr1 0x002 gl.cr2 0x00 4 gl.giocr 0x00a utopia l2 0000 xx00 0000 0000 0x0204 0x0000 utopia l3 0000 xx01 0000 0000 0x0204 0x0000 pos-phy l2 0000 xx10 0000 0000 0x0204 0x0000 pos-phy l3 or spi-3 0000 xx11 0000 0000 0x0204 0x0000 8-bit system bus 0000 00xx 0000 0000 0x0204 0x0000 16-bit system bus 0000 01xx 0000 0000 0x0204 0x0000 32-bit system bus 0000 10xx 0000 0000 0x0204 0x0000 table 9-2. configuration of port register settings note: the line mode has been configured with the liu enabled and the ja in the receive path (lm[2:0] = 011) for all modes excep t ohm mode. only port 1 registers have been displayed. mode port.cr1 0x040 port.cr2 0x042 port.cr3 0x044 port.cr4 0x046 ds3 c-bit 0x7c00 0000 0011 0000 000x 0x0000 0x0000 ds3 c-bit plcp 0x7c00 0000 0011 0000 010x 0x0000 0x0000 ds3 m23 0x7c00 0000 0011 0000 100x 0x0000 0x0000 ds3 m23 plcp 0x7c00 0000 0011 0000 110x 0x0000 0x0000 e3.751 0x7c00 0000 0011 0001 000x 0x0000 0x0000 e3.751 plcp 0x7c00 0000 0011 0001 010x 0x0000 0x0000 e3.823 0x7c00 0000 0011 0001 100x 0x0000 0x0000 ohm mode (ds3/e3/clear channel) 0x7c00 1100 0xxx 00xx xxx x 0x0000 0x0000
ds3181/ds3182/ds3183/DS3184 95 of 389 considerations select the hdlc controller connection. the default setting connects it to the ds3/e3 framers. setting port.cr1 .hdsel = 1 connects the hdlc controller to the plcp framers. in pos-phy mode, to select cell processing rather than packet processing, set port.cr2 .pmcpe = 1. for best performance of the clad to meet jitter requirements across the temperature range, especially @ -40 c, the following test registers should be set after reset: address 0x20b = 0x11 address 0x20f = 0x11 9.1 monitoring and debugging to determine if the device is receiving a good signal and that the chip is correctly configured for its environment, check the following status registers. receive loss of lock ? port.sr .rlol ? the clock recovery circuit of the liu was unable to recover the clock from the incoming signal. this may indicate that the liu?s master clock does not match the frequency of the incoming signal. verify that the clad is configured to match the clock input on the clka, clkb, and clkc pins (ds3, e3, sts-1). see table 10-11 . loss of signal ? line.rsr .los ? this indicates that the liu is unable to recover the clock and data because there is no signal on the line, or that the signal is attenuated beyond recovery. loss of frame ? t3.rsr1 .lof (or e3751.rsr1 or e3832.rsr1) ? this indicates that the framer was unable to synchronize to the incoming data. verify that the fm bits have been correctly configured for the correct mode of traffic (ds3, e3 g.751, e3 g.832) other helpful techniques diagnose a problem include using line loopback and diagnostic loopback. these features help to isolate and identify the source of the problem. line loopback will loop the receive input to the transmit output, eliminating the transmit side input from the equation. diagnostic loopback will loop the transmit output before the liu to the receive framer, eliminating the analog receive liu and the receive side analog circuitry. one other potential problem is the line encoding/decoding. the device needs to be configured in the same mode as the far end piece of equipment. if the far end piece of equipment is transmitting and receiving hdb3/b3zs encoded data, the ds318x also must be configured to do the same. this is controlled by the line.tcr .tzsd and the line.rcr .rzsd bits. 9.1.1 cell/packet fifo check the status registers of the fifo block. common indicators to check would be the transmit underflow, transmit overflow, and receive overflow status bits. these status bits are located in the fifo.tsrl register and the fifo.rsrl register. a transmit underflow indicates that the transmit cell processor or packet processor has attempted a read while the fifo was empty. a transmit overflow indicates that either a start of cell or a start of packet or a short packet was received when the fifo was full. additionally, if additional packet data is received when the fifo is already full, it will result in an abort status for the current packet and the transmit overflow being declared. a receive overflow occurs when cell data is received while the fifo is full. in a packet system, the overflow will be declared when a start of packet or a short packet is received or packet data is received when the fifo is full resulting in an abort status for the current packet and the receive overflow being declared. 9.1.2 cell processor monitoring the loss of cell delineation in the cell processor is recommended to insure proper operation. the lcd status bit is located in the cp.rsr register and indicates when an out of cell delineation persists for a programmed number of cells (set in the cp.rltc register).
ds3181/ds3182/ds3183/DS3184 96 of 389 9.1.3 packet processor monitoring the number of errored packets in the packet processor is recommended for proper operation. the repc status bit is located in the pp.rsr register and indicates when the errored packet count is not zero. an errored packet is detected when an errored fcs is detected. to determine how many errored packets have been received, the fcs errored packet count registers must first be updated via the pmu signal.
ds3181/ds3182/ds3183/DS3184 97 of 389 10 functional description 10.1 processor bus interface 10.1.1 8/16-bit bus widths the external processor bus can be sized for 8 or 16 bits using the width pin. when in 8-bit mode (width=0), the address is composed of all the address bits including a[0], the lower 8 data lines d[7:0] are used and the upper 8 data lines d[15:8] are not used and never driven during a read cycle. when in 16-bit mode (width=1), the address bus does not include a[0] (the lsb of the address bus is not routed to the chip) and all 16 data lines d[15:0] are used. see figure 8-40 and figure 8-42 for functional timing diagrams. 10.1.2 ready signal ( rdy ) the rdy signal allows the microprocessor to use the minimum bus cycle period for maximum efficiency. when this signal goes low, the rd or wr cycle can be terminated. see figure 8-48 for functional timing diagrams. note: the rdy signal will not go active if the user attempts to read or write unused ports or unused registers not assigned to any design blocks. the rdy signal will go active if the user writes or reads reserved registers or unused registers within design blocks. 10.1.3 byte swap modes the processor interface can operate in byte swap mode when the data bus is configured for 16-bit operation. the a[0]/bswap pin is used to determine whether byte swapping is enabled. this pin should be static and not change while operating. when the a[0]/bswap pin is low the upper register bits reg[15:8] are mapped to the upper external data bus lines d[15:8], and the lower register bits reg[7:0] are mapped to the lower external data bus lines d[7:0]. when the a[0]/bswap pin is high the upper register bits reg[15:8] are mapped to the lower external data bus lines d[7:0], and the lower register bits reg[7:0] are mapped to the upper external data bus lines d[15:8]. see figure 8-44 and figure 8-45 for functional timing diagrams. 10.1.4 read-write / data strobe modes the processor interface can operate in either read-write strobe mode or data strobe mode. when mode=0 the read-write strobe mode is enabled and a negative pulse on rd performs a read cycle, and a negative pulse on wr performs a write cycle. when mode=1 the data strobe mode is enabled and a negative pulse on ds when r/ w is high performs a read cycle, and a negative pulse on ds when r/ w is low performs a write cycle. the read-write strobe mode is commonly called the ?intel? mode, and the data strobe mode is commonly called the ?motorola? mode. 10.1.5 clear on read / clear on write modes the latched status register bits can be programmed to clear on a read access or clear on a write access. the global control register bit gl.cr1 .lsbcre controls the mode that all of the latched registers are cleared. when lsbcre=0, the latched register bits will be cleared when the register is written to and the write data has the register bits to clear set. when lsbcre=1, the latched register bits that are set will be cleared when the register is read. the clear on write mode expects the user to use the following protocol: 1. read the latched status register 2. write to the registers with the bits set that need to be cleared. this protocol is useful when multiple uncoordinated software tasks access the same latched register. each task should only clear the bits with which it is concerned; the other tasks will clear the bits with which they are concerned. the clear on read mode is simpler since the bits that were read as being set will be cleared automatically. this method will work well in a software system where multiple tasks do not read the same latched status register. the
ds3181/ds3182/ds3183/DS3184 98 of 389 latched status register bits in clear on read mode are carefully designed not to miss events that occur while a register is being read when the latched bit has not already been set. refer to figure 8-46 and figure 8-47 . 10.1.6 global write method all of the ports can be written to simultaneously using the global write method. this method is enabled by setting the gl.cr1 .gwm bit. when the global write method is enabled, a write to a register on any valid port will write to the same register on all valid ports. a valid port is a port that is available in a particular packaged part. for example, port four would not be valid in a ds3183 device. after reset, the global write method is not enabled. when the gwm bit is set, read data from the port registers is not valid and read data from the global and test registers is valid. the data value read back from a port register should be ignored. 10.1.7 interrupt and pin modes the interrupt ( int ) pin is configurable to drive high or float when not active. the gl.cr1 .intm bit controls the pin configuration, when it is set the int pin will drive high when not active. after reset, the int pin will be in high impedance mode until an interrupt source is active and enabled to drive the interrupt pin. 10.1.8 interrupt structure the interrupt structure is designed to efficiently guide the user to the source of an enabled interrupt source. the status bits in the global status ( gl.sr ) and global status latched register ( gl.srl ) are read to determine if the interrupt source is a global event like the utopia/pos-phy interface, global performance monitor update or whether it came from one of the ports. if the interrupt event came from one of the ports then the port status register ( port.sr ) and port status register latched ( port.srl ) can be read to determine if the interrupt source is a common port event like the performance monitor update or liu or whether it came from one of the ds3/e3 framers, plcp framer, atm/pkt, bert, hdlc, feac or trail trace status registers. if the interrupt came from one of the ds3/e3 framers, plcp framer, atm/pkt, bert, hdlc, feac or trail trace status registers, then one of those registers will need to be read to determine the event that caused the interrupt. the source of an interrupt can be determined by reading three status registers: global, port and block status registers. when a mode is not enabled, then interrupts from that source will not occur. for example, if plcp framing is not enabled then the potential interrupts from the latched status register in the plcp block cannot occur. similarly, if e3 framing mode is enabled, an interrupt source that is defined in ds3 framing, but not in e3 framing, cannot create a new interrupt. note that when modes are changed, the latched status bits of the new mode, as well as any other mode, may get set. if the data path reset is set during or after the mode change, the latched status bits will be automatically cleared. if the data path reset is not used to clear the latched status bits, then the registers must be cleared by reading or writing to them based on the register clear method selected.
ds3181/ds3182/ds3183/DS3184 99 of 389 figure 10-1. interrupt structure gl.isr.pisrn port.isr bit srl bit srl bit srl bit srie bit srie bit srie bit block latched status and interrupt enable registers port interrupt status register global interrupt status register and interrupt enable register gl.isrie. pisrien int port interrupts transmit system interface interrupts global interrupts figure 10-1 not only tells the user how to determine which event caused the interrupt, it also tells the user how to enable a particular interrupt. each block has a status register interrupt enable register that must be set in order to enable an interrupt. the next step is to unmask the interrupt at the port level, on a per-port basis. this is controlled in the global interrupt status register interrupt enable register ( gl.isrie ). now the device is ready to drive the int pin low when a particular status bit gets set. for example, in order to enable ds3 out of frame interrupts on port 2, the following registers would need to be written: register bit address value written note t3.rsrie1 . oofie 0x32c 0x0002 unmask oof interrupt on port 2 gl.isrie .pisrie2 0x012 0x0020 unmask port 2 interrupts the following status registers bits will be set upon reception of oof on port 2: register bit address value read note t3.rsrl1 . oofl 0x328 0x0002 ds3 out of frame on port 2 port.isr . fmsr 0x250 0x0001 framer block interrupt active, port 2 gl.isr .pisr2 0x010 0x0020 port 2 interrupt active 10.2 clocks 10.2.1 line clock modes the system loopback (slb) function does not affect the line clocks in any way.
ds3181/ds3182/ds3183/DS3184 100 of 389 10.2.1.1 loop timing enabled when loop timing is enabled ( port.cr3 .loopt), the transmit clock source is the same as the receive clock source. the tclkin pins are not used as a clock source. because loop timing is enabled, the loopback functions (llb, plb and dlb) do not cause the clock sources to switch when they are activated. the transmit and receive signal pins can be timed to a single clock reference without concern about having the clock source change during loopbacks. 10.2.1.1.1 liu enabled, loop timing enabled in this mode, the receive liu sources the clock for both the receive and transmit logic. the rclkon, tclkon and tlclkn clock output pins will be the same. the transmit or receive line, payload and fractional signal pins can be timed to any of these clock. the use of the rclkon pin as the timing source is suggested. if rclkon is used as the timing source, be sure to set port.cr3 .rfts = 0 for output timing. 10.2.1.1.2 liu disabled, loop timing enabled in this mode, the rlclkn pins are the source of the clock for both the receive and transmit logic. the rclkon, tclkon and tlclkn clock output pins will both be the same as the rlclkn clock. the transmit or receive line, payload and fractional signals can be timed to any of these clock pins. the use of the rlclkn pin as the timing source is suggested. if rlclkn is used as the timing source, be sure to set port.cr3.rfts = 1 for input timing. 10.2.1.2 loop timing disabled when loop timing is disabled, the transmit clock source can be different than the receive clock source. the loopback functions, llb, plb and dlb, will cause the clock sources to switch when they are activated. care must be taken when selecting the clock reference for the transmit and receive signals. the most versatile clocking option has the receive line interface signals timed to rlclkn, the transmit line interface signals timed to tlclkn, the receive framer and fractional signals timed to rclkon, and the transmit framer and fractional signals timed to tclkon. this clocking arrangement works in all modes. when llb is enabled, the clock on the tlclkn pins will switch to the clock from the rlclkn pins or rx liu. it is recommended that the transmit line interface signals be timed to the tlclkn pins. if tlclkn is used as the timing source, be sure to set port.cr3 .tlts = 0 for output timing. when plb is enabled, the tclkin pin will not be used and the internal transmit clock is switched to the internal receive clock. the clock on the tclkon pins will switch to the clock from the rlclkn pins or rx liu. the framer or fractional input signals will be ignored while plb is enabled. it is recommended that the transmit line interface signals be timed to the tclkon pins. when dlb is enabled, the internal receive clock is switched to the internal transmit clock which is sourced from the tclkin pins or one of the clad clocks, and the clock on the rlclkn pins or from the rx liu will not be used. the clock on the rclkon pins will switch to the clock on the tclkin pins or one of the clad clocks. the receive line signals from the rx liu or line interface pins will be ignored. it is recommended that the receive framer and fractional pins be timed to the rclkon pins. if tclkon is used as the timing source, be sure to set port.cr3 .tfts = 0 for output timing. when both dlb and llb are enabled, the tlclkn clock pins are connected to either the rx liu recovered clock or the rlclkn clock pins, and the rclkon clock pins will be connected to the tclkin clock pins or one of the clad clocks. it is recommended that the transmit line signals be timed to the tlclkn pins, the receive line interface signals be timed to the rlclkn pins, the receive framer and fractional signals be timed to the rclkon pins, and the transmit framer and fractional signals be timed to the tclkon pins. 10.2.1.2.1 liu enabled - clad timing disabled ? no lb in this mode, the receive liu sources the clock for the receive logic and the tclkin pins source the clock for the transmit logic. 10.2.1.2.2 liu enabled - clad timing enabled ? no lb in this mode, the receive liu sources the clock for the receive logic and one of the clad clocks sources the clock for the transmit logic.
ds3181/ds3182/ds3183/DS3184 101 of 389 10.2.1.2.3 liu disabled - clad timing disabled ? no lb in this mode, the rlclkn pins source the clock for the receive logic and the tclkin pins source the clock for the transmit logic. 10.2.1.2.4 liu disabled - clad timing enabled ? no lb in this mode, the rlclkn pins source the clock for the receive logic and one of the clad clocks sources the clock for the transmit logic. 10.2.2 sources of clock output pin signals the clock output pins can be sourced from many clock sources. the clock sources are the transmit input clocks pins (tclkin), the receive clock input pins (rlclkn), the recovered clock in the receive lius, and the clock signals in the clock rate adapter circuit (clad). the default clock source for the receive logic is the rlclkn pin if the liu is disabled; otherwise the default clock is sourced from the rx liu clock when the rx liu is enabled. the default clock source for the transmit logic is the clad clocks. the liu is enabled based on the line mode bits (lm[2:0]) (see table 10-33 ). the bits lm[2:0], lbm[2:0], loopt and cladc are located in the port configuration registers. liuen is not a register bit; it is a variable based on the line mode bits. liuen is also zero (liu disabled) when an ?-ohm? mode is selected. table 10-1 decodes the lm bits for liuen selection. table 10-1. liu enable table lm[2:0] liuen liu status 000 0 disabled 001 1 enabled 010 1 enabled 011 1 enabled 1xx 0 disabled table 10-2 identifies the framer clock source and the line clock source depending on the mode that the device is configured. putting the device in loopback will typically mux in a different clock than the normal clock source. table 10-2. all possible clock sources based on mode and loopback mode loopback rx framer clock source tx framer clock source tx line clock source loop timed any rlclkn or rxliu same as rx same as rx normal none rlclkn or rxliu tclkin or clad same as tx normal llb rlclkn or rxliu tclkin or clad same as rx normal plb rlclkn or rxliu same as rx same as rx normal dlb same as tx tclkin or clad same as tx normal llb and dlb same as tx tclkin or clad rlclkn or rxliun
ds3181/ds3182/ds3183/DS3184 102 of 389 table 10-3 identifies the source of the output signal tlclkn based on certain variables and register bits. table 10-3. source selection of tlclk clock signal signal loopt port.cr3 lbm[2:0] (port.cr4) llb or plb? liuen cladc (port.cr3) source 1 xxx na 1 x rx liu 1 xxx na 0 x rlclkn 0 010 llb 1 x rx liu 0 110 llb 1 x rx liu 0 010 llb 0 x rlclkn 0 110 llb 0 x rlclkn 0 011 plb 1 x rx liu 0 011 plb 0 x rlclkn 0 000 no x 0 clad 0 001 no x 0 clad 0 100 no x 0 clad 0 10x no x 0 clad 0 111 no x 0 clad 0 000 no x 1 tclkin 0 001 no x 1 tclkin 0 100 no x 1 tclkin 0 10x no x 1 tclkin tlclkn 0 111 no x 1 tclkin figure 10-2 shows the source of the tclkon signals. figure 10-2. internal tx clock 0 1 0 1 clad tclki port.cr3. cladc rclko payload loopback tclko table 10-4 identifies the source of the output signal tclkon based on certain variables and register bits.
ds3181/ds3182/ds3183/DS3184 103 of 389 table 10-4. source selection of tclkon (internal tx clock) signal loopt port.cr3 lbm[2:0] (port.cr4) liuen cladc (port.cr3) source 1 xxx 1 x rx liu 1 xxx 0 x rlclkn 0 plb (011) 1 x rx liu 0 plb (011) 0 x rlclkn 0 plb disabled x 0 clad tclkon 0 plb disabled x 1 tclkin figure 10-3 shows the source of the rclkon signals. figure 10-3. internal rx clock 0 1 0 1 rx liu clock rlclk liuen tclko diagnostic loopback rclko table 10-5 identifies the source of the output signal rclkon based on certain variables and register bits. table 10-5. source selection of rclko clock signal (internal rx clock) signal loopt port.cr3 lbm[2:0] (port.cr4) liuen cladc (port.cr3) source 1 xxx 1 x rx liu 1 xxx 0 x rlclkn 0 dlb disabled 1 x rx liu 0 dlb disabled and alb disabled 0 x rlclkn 0 dlb (1xx) x 0 clad 0 dlb (1xx) or alb (001) 0 1 tclkin rclkon 0 dlb (1xx) 1 1 tclkin 10.2.3 line io pin timing source selection the line io pins can use any input clock pin (rlclkn or tclkin) or output clock pin (tlclkn, rclkon, or tclkon) for its clock pin and meet the ac timing specifications as long as the clock signal is valid for the mode the
ds3181/ds3182/ds3183/DS3184 104 of 389 part is in. the clock select bit for the transmit line io signal group port.cr3 .tlts selects the correct input or output clock timing. 10.2.3.1 transmit line interface pins timing source selection (tposn/tdatn, tnegn/tohmon) the transmit line interface signal pin group has the same functional timing clock source as the tlclkn pin described in table 10-3 . other clock pins can be used for the external timing. the tlclkn transmit line clock output pin is always a valid output clock for external logic to use for these signals when port.cr3 .tlts=0. the transmit line timing select bit (tlts) is used to select input or output clock pin timing. when tlts=0, output clock timing is selected. when tlts=1, input clock timing is selected. if tlts is set for input clock timing and an output clock pin is used, or if tlts is set for output clock timing and an input clock pin is used, then the setup, hold and delay timings, as specified in table 18-1 , will not be valid. there are some combinations of tlts=1 and other modes in which there is no input clock pin available for external timing since the clock source is derived internally from the rx liu or the clad. table 10-6. transmit line interface signal pin valid timing source select loopt lbm[2:0] liuen cladc tlts valid timing to these clock pins 1 xxx x x 0 tlclkn, tclkon, rclkon 1 xxx 0 x 1 rlclkn 1 xxx 1 x 1 no valid timing to any input clock pin 0 dlb (100) x x 0 tlclkn, tclkon, rclkon 0 llb (010) or plb (011) x x 0 tlclkn, rclkon 0 dlb&llb (110) x x 0 tlclkn 0 not dlb (100), not llb (010), not plb (011) and not llb&dlb (110) x x 0 tlclkn, tclkon (default) 0 not llb (010) and not plb (011) and not llb&dlb (110) x 0 1 no valid timing to any input clock pin 0 not llb (010) and not plb (011) and not llb&dlb (110) x 1 1 tclkin 0 llb (010) or plb (011) or dlb&llb (110) 0 x 1 rlclkn 0 llb (010) or plb (011) or dlb&llb (110) 1 x 1 no valid timing to any input clock pin 10.2.3.2 transmit framer and fractional pin timing source selection (tfohn/tsern, tfohenin/tpdenin, tohmin/tsofin, tsofon/tdenn/tfohenon, tpdatn, tpdenon) the transmit framer and fractional signal pin group has the same functional timing clock source as the tclko pin described in table 10-4 . other clock pins can be used for the external timing. the tclko transmit clock output pin is always a valid output clock for external logic to use for these signals when tfts=0. the transmit framer and fractional timing select bit (tfts) is used to select input or output clock pin timing. when tfts=0, output clock timing is selected. when tfts=1, input clock timing is selected. if tfts is set for input clock timing and an output clock pin is used, or if tfts is set for output clock timing and an input clock pin is used, then the setup, hold and delay timings, as specified in table 18-1 , will not be valid. there are some combinations of tfts=1 and other modes in which there is no input clock pin available for external timing since the clock source is derived internally from the rx liu or the clad.
ds3181/ds3182/ds3183/DS3184 105 of 389 table 10-7. transmit framer pin signal timing source select loopt lbm[2:0] liuen cladc tfts valid timing to these clock pins 1 xxx x x 0 tclkon, tlclkn, rclkon 1 xxx 0 x 1 rlclkn 1 xxx 1 x 1 no valid timing to any input clock pin 0 plb (011) or dlb (100) or alb (001) 0 x 0 tclkon, tlclkn, rclkon 0 plb (011) or dlb (100) 1 x 0 tclkon, tlclkn, rclkon 0 dlb&llb (110) x x 0 tclkon, rclkon 0 llb (010) x x 0 tclkon 0 not llb, dlb or plb (00x) x x 0 tclkon, tlclkn 0 not plb (011) x 0 1 no valid timing to any input clock pin 0 not plb (011) x 1 1 tclkin 0 plb (011) 0 x 1 rlclkn 0 plb (011) 1 x 1 no valid timing to any input clock pin 10.2.3.3 receive line interface pin timing source selection (rposn/rdatn, rnegn/rlcvn/rohmin) the receive line interface signal pin group must clocked in with the rlclk clock input pin. when the liu is enabled, the receive line interface pins are not used so there is no valid clock reference. table 10-8. receive line interface pin signal timing source select loopt lbm[2:0] liuen cladc valid timing to these clock pins x xxx 0 x rlclkn x xxx 1 x no valid timing to any clock pin 10.2.3.4 receiver framer and fractional pin timing source selection (rsern, rsofon/rdenn/rfohenon, rfohenin/rpdenin, rpdatn) the receive framer and fractional signal pin group has the same functional timing clock source as the rclkon pin described in table 10-5 . other clock pins can be used for the external timing. the rclkon receive clock output pin is always a valid output clock for external logic to use for these signals when port.cr3 .rfts=0. the receive framer and fractional timing select bit (rfts) is used to select input or output clock pin timing. when rfts=0, output clock timing is selected. when rfts=1, input clock timing is selected. if rfts is set for input clock timing and an output clock pin is used, or if rfts is set for output clock timing and an input clock pin is used, then the setup, hold and delay timings, as specified in table 18-1 , will not be valid. there are some combinations of rfts=1 and other modes in which there is no input clock pin available for external timing since the clock source is derived internally from the rx liu or the clad.
ds3181/ds3182/ds3183/DS3184 106 of 389 table 10-9. receive framer pin signal timing source select loopt lbm[2:0] liuen cladc rfts valid timing to these clock pins 1 xxx x x 0 rclkon, tlclkn, tclkon 1 xxx 0 x 1 rlclkn 1 xxx 1 x 1 no valid timing to any input clock pin 0 plb (011) or dlb (100) or alb (001) 0 x 0 rclkon, tlclkn, tclkon 0 plb (011) or dlb (100) 1 x 0 rclkon, tlclkn, tclkon 0 dlb&llb (110) x x 0 rclkon, tclkon 0 llb (010) x x 0 rclkon, tlclkn 0 not llb, dlb or plb (00x) x x 0 rclkon 0 dlb (100) or llb&dlb(110) x 0 1 no valid timing to any input clock pin 0 dlb (100) or llb&dlb(110) x 1 1 tclkin 0 not dlb (100) and not llb&dlb(110) 0 x 1 rlclkn 0 not dlb (100) and not llb&dlb(110) 1 x 1 no valid timing to any input clock pin 10.2.4 clock structures on signal io pins the signals on the input pins (rfohenin, tohmin/tsofin, tfohn/tsern, tfohenin) can be used with any of the clock pins for setup/hold timing on clock input and output pins. there will be a flop at each input whose clock is connected to the signal from the input or output clock source pins with as little delay as possible from the signal on the clock io pins. this means using the input clock signal before the delays of the internal clock tree to clock the input signals, and using the output clock signals used to drive the output clock pins to clock the input signals. the signals on the output pins (tposn/tdatn, tnegn/tohmon, tsofon/tdenn/tfohenon, rsern, rsofon/rdenn/rfohenon) can be used with any of the clock sources for delay timing. there will be a flop at each output whose clock is connected to the signal from the input or output clock source pins with as little delay as possible from the signal on the clock io pins. this means using the input clock signal before the delays of the internal clock tree to clock the input signals, and using the output clock signals to drive the output clock pins to clock the input signals.
ds3181/ds3182/ds3183/DS3184 107 of 389 figure 10-4. example io pin clock muxing q q set clr d internal signal tclki pin invert rlclk pin invert rx liu clk ds3 clk e3 clk sts-1 clk clad clocks tclko pin invert clock tree tden pin invert q q set clr d delay tfts 0 1 tser pin invert q q set clr d q q set clr d internal signal delay 0 1 tfts q q set clr d internal signal tlclk pin invert clock tree tpos pin invert q q set clr d delay tlts 0 1 q q set clr d internal signal rclko pin invert clock tree rser pin invert q q set clr d delay rfts 0 1 10.2.5 gapped clocks the transmit and receive output clocks can be gapped in certain configurations. see table 10-24 and table 10-31 for the configuration settings. the gapped clocks are active during ds3 or e3 framed payload bits or ds3 or e3 fractional overhead bits depending on which mode the device is configured for. in the internal ds3 or e3 fractional modes, the transmit gapped clock is created by the logical or of the tclkon and tfohenon signals creating a positive or negative clock edge for each fractional overhead bit, the receive gapped clock is created by the logical or of the rclkon and rfohenon signals. in the internal ds3 or e3 non- fractional modes, the transmit gapped clock is created by the logical or of the tclkon and tdenn signals creating a positive or negative clock edge for each payload bit, the receive gapped clock is created by the logical or of the rclkon and rdenn signals. when the output clock is disabled, the gapped output signal is high during clock periods if the pin is not inverted; otherwise it will be low. the gapped clocks are very useful when the data being clocked does not need to be aligned with any frame structure. the data is simply clocked one bit at a time as a continuous data stream.
ds3181/ds3182/ds3183/DS3184 108 of 389 10.3 reset and power-down the device can be reset at a global level via the gl.cr1 . rst bit or the rst pin and at the port level via the port.cr1 . rst bit and each port can be explicitly powered down via the port.cr1 . pd bit. the jtag logic is reset using the jtrst pin. the external rst pin and the global reset bit in the global configuration register ( gl.cr1 .rst) are combined to create an internal global reset signal. the global reset signal resets all the status and control registers on the chip, except the gl.cr1 . rst bit, to their default values and resets all the other flops in the system bus interface, global logic and ports to their reset values. the processor bus output signals are also forced to be hiz when the rst pin is active (low). the global reset bit ( gl.cr1 . rst) stays set after a one is written to it, but is reset to zero when the external rst pin is active or when a zero is written to it. at the port level, the global reset signal combines with the port reset bit in the port control register ( port.cr1 . rst) to create a port reset signal. the port reset signal resets all the status and control registers on the port to their default values and resets all the other flops, except port.cr1 . rst, to their reset values. the port reset bit ( port.cr1 . rst) stays set after a one is written to it, but is reset to zero when the global reset signal is active or when a zero is written to it. the data path reset function is a little different from the ?general? reset function. the data path reset signal does not reset the control register bits, but it does reset all of the status registers, counters and flops, the ?general? reset signal resets everything including the control register bits, excluding the reset bit. all clocks are functional, being controlled by configuration bits, while data path reset is active. the liu and clad circuits will be operating normally during data path reset, which allows the internal phase locked loops to settle as quickly as possible. the liu will be sending all zeroes (los) since data path reset will be forcing the transmit tposn and tnegn to logic zero. (note: the bert data path and control registers are reset when the global data path reset or the port data path reset or the port power-down signal is active.) the global data path reset bit ( gl.cr1 . rstdp) gets set to one when the global reset signal is active. the port data path reset bit ( port.cr1 . rstdp) and the port power-down bit ( port.cr1 . pd) bit get set to one when the global reset signal is active or the port reset signal is active. these control bits will be cleared when a zero is written to them if the global reset signal or the port reset signal is not active. the global data path reset signal is active when the global data path reset bit is set. the port data path reset signal is active when either the global data path reset bit or the port data path reset bit is set. the port power-down signal is active when the port power- down bit is set. figure 10-5. reset sources q q set clr d q q set clr d q q set clr d q q set clr d rst pin global reset port reset global data path reset port data path reset gl.cr1 . rst gl.cr1 . rstdp port.cr1 . rst port.cr1 . rstdp note: assumes active high signals q q set clr d port power down port.cr1 . pd
ds3181/ds3182/ds3183/DS3184 109 of 389 table 10-10. reset and power-down sources register bit states - f0: forced to 0, f1: forced to 1, 0: set to 0, 1: set to 1, x: don?t care forced: internally controlled set: user controlled pin register bits internal signals rst g:rst g:rstdp p:rst p:rstdp p:pd global reset global dp reset port reset port dp reset port power dan 0 f0 f1 f0 f1 f1 1 1 1 1 1 1 1 f1 f0 f1 f1 1 1 1 1 1 1 0 1 1 f1 f1 0 1 1 1 1 1 0 1 0 x 1 0 1 0 1 1 1 0 1 0 x 0 0 1 0 1 0 1 0 0 1 f1 f1 0 0 1 1 1 1 0 0 0 1 1 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 the reset signals in the device are asynchronous so they no not require a clock to put the logic into the reset state. clock signals may be needed to make the logic come out of the reset state. the power-down function disabl es the appropriate clocks to cause the logic to generate a minimum of power. it also puts the liu circuits into the power-down mode. note that the utopia/pos-phy system interface logic cannot be powered down, the clocks cannot be stopped. the 8kref and onesec circuits can be powered down by disabling the 8kref source. the clad can also be powered down by disabling it. after a global reset, all of the control and status registers in all ports are set to their default values and all the other flops are reset to their reset values. the global register gl.cr1 . rstdp, and the port register port.cr1 . rstdp and port.cr1 . pd bits in all ports, are set after the global reset. a valid initialization sequence would be to clear the port.cr1 . pd bits in the ports that are to be active, write to all of the configuration registers to set them in the desired modes, then clear the gl.cr1 . rstdp and port.cr1 . rstdp bits. this would cause the logic in the ports to start up in a repeatable sequence. the device can also be initialized by clearing the gl.cr1 . rstdp, port.cr1 . rstdp and port.cr1 . pd them writing to all of the configuration registers to set them in the desired modes, and clearing all of the latched status bits. the second initialization scheme could cause the device to temporarily go into modes of operation that were not requested, but will quickly go into the requested modes of operation. some of the io pins are put in a known state at reset. the transmit liu outputs txpn and txnn are quiet and will not drive positive or negative pulses. the global io pins (gpio[7:0]) are set as inputs at global reset. the port output pins (tlclkn, tposn/tdatn, tnegn/tohmon, tohclkn, tohsofn, tpohsofn/tsofon/tdenn/ tfohenon, tpohclkn/tclkon/tgclkn, ro hn, rohclkn, rohsofn, rpohn/rsern, rpohsofn/rsofon/rdenn/rfohenon, rpohclkn/rclkon/rgclkn) are driven low at global or port reset and should stay low until after the port power-down port.cr1 . pd and port data path reset port.cr1 . rstdp bits are cleared. the clad output clock pins cla, clkb and clkc are the liu reference clock inputs at global reset. the system interface three-state output pins (tdxa[1]/tpxa, tspa, rdata[31:0], rprty, rdxa[1]/rpxa/rsx, rsox, reop, rval, rmod[1:0], rerr) are in the high impedance and the system interface output pins (tdxa[4:2],rdxa[4:2]) are driven low at global reset. the processor port three-state output pins (d[15:0], rdy , int ) are forced into the high impedance state when the rst pin is active, but not when the gl.cr1 . rst bit is active.
ds3181/ds3182/ds3183/DS3184 110 of 389 after reset, the device will be in the default configuration:: the latched status bits are enabled to be cleared on write. the clad is disabled. the global 8kref and one-second timers are disabled. the line interface is in b3zs mode and the liu is disabled and the transmit line pins ar e also disabled. the frame mode is ds3 c-bit with automatic downstream ais on los or oof is enabled and automatic rdi on lof, los, sef or ais is enabled and automatic febe is enabled. transmit clock comes from the clad clka pin. cell processing is enabled with payload scrambling and hec recalculation and coset addition enabled. the transmit and receive fifos are held in reset so no cell traffic will occur until the fifos are configured. the system interface is in 8-bit utopia l2 with odd parity enabled and hec transfer disabled. the pin inversion on all pins is disabled. individual blocks are reset and powered down when not used determined by the settings in the line mode bits port.cr2 . lm[2:0] and framer mode bits port.cr2 . fm[5:0]. 10.4 global resources 10.4.1 clock rate adapter (clad) the clock rate adapter is used to create multiple clocks fo r liu reference clocks or transmit clocks from a single clock reference input on the clka pin. the clock frequency applied to this pin must be at the ds3 (44.736 mhz), e3 (34.368 mhz) and sts-1 (51.84 mhz) clock rates. gi ven one of these cl ocks the other two clocks will be generated. the internally generated signals can be driven on output pins (clkb and clkc) for external use. the receive liu is supplied a reference clock from the clad. the receive liu selects the clock frequency based upon the mode the user selects via the fm bits. the clad output is also available as a transmit clock source if selected via the port.cr2 .cladc register bit. the user must supply at least one of the three rates (ds3, e3, sts-1) to the clka pin. the clad[3:0] bits informs the pll of the frequency applied to the pins. selection of the output clock of the clad applied to the liu and optionally the transmitter is controlled by the fm bits (located in port.cr2 ). the clad allows maximum flexibility to the user. the user may supply any of the three clock rates and use the clad to convert the rate to the particular clock rate needed for his application.
ds3181/ds3182/ds3183/DS3184 111 of 389 figure 10-6. clad block clka clkb clkc ds3 clock e3 clock cc52 clock clad clad mode the clock rate adapter can also be disabled and all three clocks supplied externally using the clka, clkb and clkc pins as clock inputs. when the clad is disabled, the three reference clocks ds3, e3 and sts-1 will need to be applied to the clka, clkb and clkc pins, respectively. if any of the three frequencies is not required, it does not need to be applied to the clad clk pins. the clad mode inputs to the clock rate adapter are composed of clad[3:0] control bits (located in the gl.cr2 register) which determines which pins are input and output and which clock rate is on which pin. when clad[3:0]=00xx, the pll circuits are disabled and the signals on the input clock pins are used as the internal liu reference clocks. when clad[3:0]=(01xx or 10xx or 11xx), none, one or two pll circuits are enabled to generate the required clocks as determined by the clad[3:0] bits and the framing mode (fm[5:0]) and the line mode (lm[2:0]) control bits. if a clock rate is not required on the clad output clock pins or for a reference clock for any of the liu, then the pll used to generate that clock is disabled and powered down. for example, in a design that only has the ports running at ds3 rates, then clad[3:0] can be set = 0100 and the ds3 clock signal on the clka pin will be used as the ds3 liu reference clock and no pll circuit will be disabled.
ds3181/ds3182/ds3183/DS3184 112 of 389 table 10-11. clad io pin decode gl.cr2 clad[3:0] clka pin clkb pin clkc pin 00 xx ds3 clock input e3 clock input sts-1 clock input 01 00 ds3 clock input low output low output 01 01 ds3 clock input e3 clock output low output 01 10 ds3 clock input low output sts-1 clock output 01 11 ds3 clock input sts-1 clock output e3 clock output 10 00 e3 clock input low output low output 10 01 e3 clock input ds3 clock output low output 10 10 e3 clock input low output sts-1 clock output 10 11 e3 clock input sts-1 clock output ds3 clock output 11 00 sts-1 clock input low output low output 11 01 sts-1 clock input e3 output low output 11 10 sts-1 clock input low output ds3 clock output 11 11 sts-1 clock input ds3 clock output e3 clock output 10.4.2 8 khz reference generation the 8kref signal is used to control the rate of plcp frames to precisely 8000 per second. the global 8kref signal is also used to generate the one-second-reference signal by dividing it by 8000. this signal can be derived from almost any clock source on the chip as well as the general-purpose io pin gpio4. the port 8kref signal can be sourced from either the global 8kref signal or from the transmit or receive port clock or from the receive 8kref signal. the minimum input frequency stability of the 8kref input pin is +/- 500 ppm. the global 8kref signal can come from an external 8000 hz reference connected to the gpio4 general-purpose io pin by setting the gl.cr2 . g8kis bit. the global 8kref signal can be output on the gpio2 general-purpose io pin when the gl.cr2 .g8kos bit is set. the global 8kref signal can be derived from the clad pll or pins or come from any of the port 8kref signals by clearing gl.cr2 . g8kis bit and selecting the source using the gl.cr2. g8krs[2:0] bits. the port 8kref signal can be derived from either the rece ive plcp 8kref signal or from the transmit clock input pin or from the receive liu or input clock pin. the port.cr3. p8krs[1:0] bits are used to select which source. the transmit plcp 8kref signal can be selected to be either the global 8kref signal or the port 8kref signal using the port.cr3 . p8kref bit. the 8kref 8.000 khz signal is a simple divisor of 51840 khz (cc52 divided by 6480), 44736 khz (ds3 divided by 5592) or 33368 khz (e3 divided by 4296). the correct divisor for the port 8kref source is selected by the mode the port is configured for. the clad clock chosen for the clock source selects the correct divisor for the global 8kref. the 8kref signal is only as accurate as the clock source chosen to generate it. table 10-12 lists the selectable sources for global 8 khz reference sources.
ds3181/ds3182/ds3183/DS3184 113 of 389 table 10-12. global 8 khz reference source table gl.cr2. g8kis gl.cr2. g8krs[2:0] source 0 000 none, the 8khz divider is disabled. 0 001 derived from clad ds3 clock output or clka pin if clad is disabled (note: clad is disabled after reset) 0 010 derived from clad e3 clock output or clkb pin if clad is disabled 0 011 derived from clad sts-1 clock output or clkc pin if clad is disabled 0 100 port 1 8kref source selected by p8krs[1:0] 0 101 port 2 8kref source selected by p8krs[1:0] 0 110 port 3 8kref source selected by p8krs[1:0] 0 111 port 4 8kref source selected by p8krs[1:0] 1 xxx gpio4 pin table 10-13 lists the selectable sources for port 8 khz reference sources. table 10-13. port 8 khz reference source table port.cr3. p8krs[1:0] source 0x receive plcp 8khz output 10 receive internal framer clock (based on rlclkn pin or rx liu recovered clock) 11 transmit internal framer clock (based on tclkin pin or clad clock) the 8 khz reference logic tree is shown below. figure 10-7. 8kref logic 0 1 0 1 0 1 clock divider 0 1 clock divider 0 1 1 3 2 1 3 2 0 tx clock rx clock frame mode (fm bits) rx plcp 8kref port.cr3. p8krs[1] port.cr3.p8krs[0] gpio4 other port 8kref ds3 clk e3 clk cc52 clk from clad gl.cr2. g8krs[1:0] gl.cr2.g8krs[1:0] gl.cr2.g8krs[2] g8kref port.cr3.p8kref global 8kref port 8kref tx plcp 8kref
ds3181/ds3182/ds3183/DS3184 114 of 389 10.4.3 one second reference generation the one-second-reference signal is used as an option to update the performance registers on a precise one- second interval. the generated internal signal should be about 50% duty cycle and it is derived from the global 8 khz reference signal by dividing it by 8000. the low to high edge on this signal will set the gl.srl . onesl latched one second detect bit which can generate an interrupt when the gl.srie . onesie interrupt enable bit is set. the low to high edge can also be used to generate performance monitor updates when gl.cr1 . gpm[1:0]=1x. 10.4.4 general-purpose io pins there are eight general-purpose io pins that can be used for general io, global signals and per-port alarm signals. each pin is independently configurable to be a general-purpose input, general-purpose output, global signal or port alarm. two of the gpio pins are assigned to each port and can be programmed to output one or two alarm statuses using one or two gpio pins. one of the two pins assigned to each port can be programmed as global input or output signals. when the device is bonded out (or has ports powered down) to have 1, 2 or 3 ports active, the gpio pins associated with the disabled ports will still operate as either general-purpose inputs, general- purpose outputs or global signals. when the ports are disabled and gl.giocr . gpiox[1:0] = 01, the gpio pin will be an output driving low. the 8krefi, tmei, and pmu signals that can be sourced by the gpio pin will be driven low into the core logic when the gpio pin is not selected for the source of the signal. table 10-14 lists the purpose and control thereof of the general-purpose io pins. table 10-14. gpio global signals pin global signal control bit gpio2 8krefo output gl.cr2 .g8kos gpio4 8krefi input gl.cr2 .g8kis gpio6 tmei input gl.cr1 .meims gpio8 pmu input gl.cr1 .gpm[1:0] table 10-15 describes the selection of mode for the gpio pins. table 10-15. gpio pin global mode select bits n = port 1 to 4, x = a or b, valid when a gpio pin is not selected for a global signal gl.giocr .gpionsx gpio pin mode 00 input 01 port alarm status selected by port gpio 10 output logic 0 11 output logic 1 table 10-16 lists the various port alarm monitors that can be output on the gpio pins. the gpio(a/b)[3:0] bits are located in the port.cr4 register.
ds3181/ds3182/ds3183/DS3184 115 of 389 table 10-16. gpio port alarm monitor select port.cr4 gpio(a/b)[3:0] line los ds3/e3 oof ds3/e3 lof ds3/e3 ais ds3/e3 rai ds3 idle plcp oof plcp lof plcp rai atm ocd atm lcd 0000 x 0001 x 0010 x 0011 x 0100 x 0101 x 0110 x 0111 x 1000 x 1001 x 1010 x 1011 x x x 1100 x x 1101 x x x x x 1110 x x x 1111 x x x x x x x x x x x 10.4.5 performance monitor counter update details the performance monitor counters are designed to count at least one second of events before saturating to the maximum count. there is a status bit associated with some of the performance monitor counters that is set when the its counter is greater than zero, and a latched status bit that gets set when the counter changes from zero to one. there is also a latched status bit that gets set on every event that causes the error counter to increment. there is a read register for each performance monitor counter. the count value of the counter gets loaded into this register and the counter is cleared when the update-clear operation is performed. if there is an event to be counted at the exact moment (clock cycle) that the counter is to be cleared then the counter will be set to a value of one so that that event will be counted. the performance monitor update signal affects the counter registers of the following blocks: the bert, the ds3/e3 framer, the line encoder/decoder, the ds3/e3 plcp framer, the cell processor, and the packet processor. the update-clear operation is controlled by the performance monitor update signal (pmu). the update-clear operation will update the error counter registers with the value of the error counter and also reset each counter. the pmu signal can be created in hardware or software. the hardware sources can come from the one second counter or one of the general-purpose io pins, which can be programmed to source this signal. the software sources can come from one of the per-port control register bits or one of the global control register bits. when using the software update method, the pmu control bit should be set to initiate the process and when the pms status bit gets set, the pmu control bit should be cleared making it ready for the next update. when using the hardware update method, the pms bit will be set shortly after the hardware signal goes high, and cleared shortly after the hardware signal goes low. the latched pms signal can be used to generate an interrupt for reading the count registers. if the port is not configured for global pmu signals, the pms signal from that port should be blocked from affecting the global pms status.
ds3181/ds3182/ds3183/DS3184 116 of 389 figure 10-8. performance monitor update logic gl.sr .gpms port.sr .pms port.cr1 .pmu port.cr1 .pmum 1 0 00 01 1x gl.cr1 .gpm gl.cr1 .gpmu gpio8(gpmu) pin one sec perf counter other port counters other ports pmu pms gtz 10.4.6 transmit manual error insertion transmit errors can be inserted in some of the functional blocks. these errors can be inserted using register bits in the functional blocks, using the global gl.cr1 . tmei bit, using the port port.cr1 . tmei bit, or by using the gpio6 pin configured for tmei mode. there is a transmit error insertion register in the functional blocks that allow error insertion. the meims bit controls whether the error is inserted using the bits in the error insertion register or using error insertion signals external to that block. when bit meims=0, errors are inserted using other bits in the transmit error insertion register. when bit meims=1, errors are inserted using a signal generated in the port or global control registers or using the external gpio6 pin configured for tmei operation.
ds3181/ds3182/ds3183/DS3184 117 of 389 figure 10-9. transmit error insert logic bert error insert bert.teicr .meims bert.teicr error insertion bit 0 1 0 1 port.cr .meims port.cr .tmei 0 1 gl.cr1 .meims gl.cr1 .tmei gpio6 pin (tmei) 0 1 t3.teir .meims t3.teir error insertion bit 0 1 t3 error insert 10.5 per-port resources 10.5.1 loopbacks there are several loopback paths available. the following table lists the loopback modes available for analog loopback (alb), line loopback (llb), payload loopback (plb) and diagnostic loopback (dlb). system loopback (slb) does not interact with these loopbacks and is given its own control bit. the lbm bits are located in port.cr4. table 10-17. loopback mode selections lbm[2:0] alb llb plb dlb 000 0 0 0 0 001 1 0 0 0 010 0 1 0 0 011 0 0 1 0 10x 0 0 0 1 110 0 1 0 1 111 0 0 0 1
ds3181/ds3182/ds3183/DS3184 118 of 389 figure 10-10 highlights where each loopback mode is located and gives an overall view of the various loopback paths available. figure 10-10. loopback modes ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx packet processor ds3/e3 receive liu tais tua1 tx frac/ plcp rx frac/ plcp clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.5.1.1 analog loopback (alb) analog loopback is enabled by setting port.cr4 . lbm[2:0] = 001. analog loopback mode will not be enabled when the port is configured for loop timed mode (set via the port.cr3 . loopt bit). the analog loopback is a loopback as close to the pins as possible. when both the tx and rx liu is enabled, it loops back txpn and txnn to rxpn and rxnn, respectively. if the transmit signals on txpn and txnn are not terminated properly, this loopback path may have data errors or loss of signal. when the liu is not enabled, it loops back tlclkn, tposn / tdatn, tnegn / tohmon to rlclkn ,rposn / rdatn , rnegn / rohmin. figure 10-11. alb mux rxp rxn txp txn rx liu tx liu 10.5.1.2 line loopback (llb) line loopback is enabled by setting port.cr4 . lbm[2:0] = x10. dlb and llb are enabled at the same time when lbm[2:0] = 110, and only llb is enabled when lbm[2:0] = 010. the clock from the receive liu or the rlclk pin will be output to the transmit liu or tclkon pin. the pos and neg data from the receive liu or the rpos and rneg pin will be sampled with the receive clock to time it to the liu or pin interface.
ds3181/ds3182/ds3183/DS3184 119 of 389 when llb is enabled, unframed all ones ais can optionally be automatically enabled on the receive data path. this ais signal will be output on the rsern pin in flexible fractional mode, and sent to the receive cell or packet processor in framer modes, effectively stopping cell or packet data flow. when dlb and llb is enabled, the ais signal will not be transmitted. refer to figure 10-10 . 10.5.1.3 payload loopback (plb) payload loopback is enabled by setting port.cr4 . lbm[2:0] = 011. the payload loopback copies the payload data from the receive framer to the transmit framer (before the fractional logic) which then re-frames the payload before transmission. payload loopback is operational in all framing modes except ?- ohm? modes. when plb is enabled, unframed all ones ais transmission can optionally be automatically enabled on the receive data path. this ais signal will be output on the rser pin in flexible fractional mode, and sent to the receive cell or packet processor in framer modes, effectively stopping cell or packet data flow. in all modes, the tsofin input pin is ignored. the external transmit output pins tdenn and tsofon/tdenn can optionally be disabled by forcing a zero when plb is enabled. in the framed modes, the data flow from the transmit cell or packet processor can be optionally disabled when plb is enabled. if the data flow is not disabled, the cells or packets from the system interface will be discarded. refer to figure 10-10 . 10.5.1.4 diagnostic loopback (dlb) diagnostic loopback is enabled by setting port.cr4 . lbm[2:0] = 1xx. dlb and llb are enabled at the same time when lbm[2:0] = 110, only dlb is enabled when lbm[2:0] = 10x or 111. the diagnostic loopback sends the transmit data, before line encoding, back to the receive side. transmit ais can still be enabled using port.cr1 .lais[2:0] even when dlb is enabled. refer to figure 10-10 . 10.5.1.5 system loopback (slb) system loopback is enabled by setting the port.cr4 . slb bit. the system loopback sends the packets or cells from the transmit utopia or pos-phy interface back to the receive utopia or pos-phy interface. cells and packets from the line interface will be discarded. refer to figure 10-10 . 10.5.2 loss of signal propagation the loss of signal (los) is detected in the line decoder logic. in unipolar (uni) line interface modes los is never detected. the los signal from the line decoder is sent to the ds3/e3 framer and the top level payload ais logic except when dlb is activated. when dlb is activated the los signal to the framer and ais logic is never active. the los status in the line decoder status register is valid in all frame and loopback modes, though it is always off in the line interface is in the uni mode. 10.5.3 ais logic there is ais logic in both the framers and at the top level logic of the ports. the framer ais is enabled by setting the tais bit in the appropriate framer transmit control register (t3, e3-g.751, e3-g.832, or clear channel). the top level ais is enabled by setting the port.cr1 .lais[2:0] bits (see table 10-18 ). the ais signal is an unframed all ones pattern or a ds3 framed 101010? pattern depending on the fm[5:0] mode bits. the ds3 framed alarm indication signal (ais) is a ds3 signal with valid f-bits, m-bits, and p-bits (p 1 and p 2 ). the x-bits (x 1 and x 2 ) are set to one, all c-bits (c xy ) are set to zero, and the payload bits are set to a 1010 pattern starting with a one immediately after each overhead bit. the ds3 framed ais pattern is only available in ds3 modes. the unframed all ones pattern is available in all framing and clear-channel modes including the ds3 modes. the transmit line
ds3181/ds3182/ds3183/DS3184 120 of 389 interface can send both unframed all ones ais and ds3 framed ais patterns from either the ais generator in the framer or the ais generator at the top level. the ais signal generated in the framer can be initiated and terminated without introducing any errors in the signal. when the unframed ais signal is initiated or terminated, there will be no bpv or cv errors introduced, there will be framing errors if a framed mode is enabled. when the ds3 framed ais signal is initiated or terminated, in addition to no bpv or cv errors, there should be no framing or p-bit (parity) or cp-bit errors introduced. the ais signal generated at the top level will not generate bpv errors but may generate p-bit and cp-bit errors when the signal is initiated and terminated. the framed ds3 ais signal will not cause the far end receiver to re- sync when the signal is initiated, but it may cause a re-sync when terminated if the ds3 frame position in the framer is changed while the ds3 ais signal is being generated. a sequence of events can be executed which will enable the initiation and termination of ds3 ais or unframed all ones at the top level without any errors introduced. the sequence will only work when the automatic ais generation is not enabled. cv and p-bit errors can occur when ais is automatically generated and cannot be avoided. this sequence to generate an error free ds# ais at the top level is to have the ds3 ais or unframed all ones signal initiate in the ds3 framer, and a few frames sent before initiating or terminating the ds3 ais or unframed all ones at the top level. after the top level ais signal is activated, the ais signal in the framer can be terminated, dlb activated and diagnostic patterns generated. the ds3 ais signal generated at the top level will not change frame alignment after starting even if the ds3 frame position in the framer is changed. the transmit line ais generator at the top level can generate ais signals even when the framer is looped back using dlb, but not when the line is looped back using llb. the ais signal generated in the framer will be looped back to the receive side when dlb is activated. the receive framer can detect both unframed all ones ais and ds3 framed ais patterns. when in ds3 framing modes, both framed ds3 ais and unframed all ones can be detected. in e3 framing modes e3 ais, which is unframed all ones, is detected. in clear-channel modes, unframed all ones is detected. the receive payload interface going to the rsern pin or the plcp, frac, bert or atm/pkt logic can have an unframed all ones ais signal replacing the receive signal, this is called payload ais. the all ones ais signal is generated from either the ds3/e3 framer or the downstream top level unframed all ones ais generator. the unframed all ones ais signal generated in the framer will be looped back to the transmit side when plb is activated. the unframed all ones ais signal generated at the top level will be sent to the rsern pin and other receive logic, but not to the transmit side while plb is activated. the top level ais generator is used when a downstream ais signal is desired while payload loopback is activated and is enabled by default after rest and must be cleared during configuration. note that the downstream ais circuit in the framer, when a ds3 mode is selected, enforces the oof to be active for 2.5 ms before activating when automatic ais in the framer is enabled. the top level downstream ais will be generated with no delay when oof is detected when automatic ais at the top level is enabled. there is no detection of any ais signal on the transmit payload signal from the tsern pin or anywhere on the transmit data path. the transmit ais generator at the top level can also be activated with a software bit or automatically when dlb is activated. the receive ais generator in the framer can be activated with a software bit, and automatically when ais, los or oof are detected. the receive payload ais generator at the top level can be activated with a software bit or automatically when los, ds3/e3 oof, llb or plb is activated. when the port is configured for ?- ohm? modes, the transmit ds3 ais signal pattern generation is paused when the tohmi signal is active. also the receive ds3 ais and unframed all ones detectors do not use the bits marked for overhead from the rohmin signal when dlb is not activated or the tohmin signal when dlb is activated. the payload unframed all ones overwrites the receive signal with all ones even in overhead bit positions.
ds3181/ds3182/ds3183/DS3184 121 of 389 figure 10-12 shows the ais signal flow through the device. figure 10-12. ais signal flow ua1 ais 0 1 0 1 ua1 ais ds3/ ua1 ais 0 1 0 1 0 1 ds3/ ua1 ais 0 1 optional b3zs/ hdb3 decoder optional b3zs/ hdb3 encoder plb 0 1 dlb llb ds3/ua1 ais detector framer tais dais tais dais transmit line receive line transmit payload receive payload tsofo line/tributary side system/ trunk side table 10-18 lists the lais decodes for various line ais enable modes. table 10-18. line ais enable modes lais[1:0] port.cr1 frame mode description ais code 00 ds3 automatic ais when dlb is enabled ( port.cr4 .lbm = 1xx) ds3ais 00 e3 automatic ais when dlb is enabled ua1 00 clear channel automatic ais when dlb is enabled ua1 01 any send ua1 ua1 10 ds3 send ais ds3ais 10 e3 or clear channel send ais ua1 11 any disable none
ds3181/ds3182/ds3183/DS3184 122 of 389 table 10-19 lists the pais decodes for various payload ais enable modes. table 10-19. payload (downs tream) ais enable modes pais[2:0] port.cr1 when ais is sent ais code 000 always ua1 001 when llb (no dlb) active ua1 010 when plb active ua1 011 when llb(no dlb) or plb active ua1 100 when los (no dlb) active ua1 101 when oof active ua1 110 when oof, los. llb (no dlb), or plb active ua1 111 never none 10.5.4 loop timing mode loop timing mode is enabled by setting the port.cr3 .loopt bit. this mode replaces the clock from the tclkin pin with the internal receive clock from either the rlclkn pin if the rx liu is disabled, or the recovered clock from the rx liu if it is enabled. the loop timing mode can be activated in any framing or line interface mode. 10.5.5 hdlc overhead controller there is a single hdlc controller for use in line maintenance protocols. the ds3, e3 and plcp framers share the same hdlc controller. since the plcp and ds3 or e3 framers can potentially use the hdlc controller at the same time, there is a select bit in the port control register to chose which one uses the hdlc controller ( port.cr1 .hdsel). the port that does not get access to the hdlc controller will transmit all ones in the overhead bits that the hdlc controller would connect to. the external overhead ports can be used to connect to an external hdlc controller if both framers need the function. the data signal to the receive hdlc controller will be forced to a one while still being clocked when the framer (ds3, e3, or plcp), to which the hdlc is connected, detects lof or ais. forcing the data signal to all ones will cause an hdlc packet abort if the data started to look like a packet instead of allowing a bad, and possibly very long, hdlc packet. 10.5.6 trail trace there is a single trail trace controller for use in line maintenance protocols. the e3-g.832 and plcp framers can use the trail trace controller and it is shared automatically since the e3-g.832 and plcp framing cannot be enabled at the same time. 10.5.7 bert there is a bit error rate test (bert) circuit for each port for use in generating and detecting test signals in the payload bits. the bert can generate and detect prbs patterns up to 2^32-1 bits as well as repeating patterns up to 32 bits long. the generated bert signal replaces the cells or packets from the system interface when the bert is enabled by setting the port.cr1.bena. the cells or packets from the system interface will still be processed using the same bit rate as when the bert was not enabled. any transmit cells will be simply discarded when the bert is enabled, and any cells or packets on the line interface will be processed and sent to the system bus when the bert is enabled. the tdenn and rdenn pins will still be active but the data on the tsern pin will be discarded when the bert is enabled.
ds3181/ds3182/ds3183/DS3184 123 of 389 10.5.8 fractional payload controller the fractional payload controller allows the user flexibility to control sub-rate datastreams. the fractional payload controller performs fractional overhead/payload data multiplexing. fractional overhead is sourced from either an internal register or the external interface. the allocation of the ds3/e3 payload is also controlled either internally (internally controlled mode) or through the external interface (externally controlled mode). the third option is flexible mode that allows the user to externally multiplex payload and overhead, bypassing the fractional payload controller. 10.5.9 plcp/fractional port pins the plcp/fractional port pins are have multiple functions based on the framing mode the device is in as well as other pin mode select bits. 10.5.9.1 transmit plcp/fractional port pins the transmit plcp/fractional pins are tsofin / tohmin, tpohn / tfohn / tsern, tpohenn / tfohenin / tpdenin, tpohsofn / tsofon / tdenn / tfohenon, tpdenon, tpdatn, and tpohclkn / tclkon / tgclkn. they have different functions based on the framing mode and other pin mode bits. unused input pin functions should drive a logic zero into the device circuits expecting a signal from that pin. the control bits that configure the pins? modes are port.cr2 . fm[5:0], port.cr3 . tpfpe, port.cr3 . tsofos and port.cr3 . tclks. table 10-20 to table 10-26 describe the function selected by the fm bits and other pin mode bits for the multiplexed pins. table 10-20. tsofin/tohmin input pin functions fm[5:0] port.cr2 pin function 0xxx00 (frm) tsofin 0xxx1x (frm) tsofin 0xxx01 (ohm) tohmin 1xx0x1 (ohm) tohmin 1xx0x0 (ufrm) not used 1xx1xx (ufrm) not used table 10-21. tsern/tpohn/tfohn input pin functions fm[5:0] port.cr2 tpfpe port.cr3 pin function 0xx00x (frm) x not used 0xx010 (ifrac) 0 not used 0xx010 (ifrac) 1 tfohn 0xx011 (xfrac) x tfohn 0xx10x (plcp) 0 not used 0xx10x (plcp) 1 tpohn 0xx110 (ffrac) x tsern 1xx0xx (clr) x not used
ds3181/ds3182/ds3183/DS3184 124 of 389 table 10-22. tpdenin/tpohen n/tfohenin input pin functions fm[5:0] port.cr2 tpfpe port.cr3 pin function 0xx00x (frm) x not used 0xx010 (ifrac) x not used 0xx011 (xfrac) x tfohenin 0xx10x (plcp) 0 not used 0xx10x (plcp) 1 tpohenn 0xx110 (ffrac) x tpdenin 1xxxxx (clr) x not used table 10-23. tsofon/tdenn/tpohso fn/tfohenon output pin functions fm[5:0] port.cr2 tpfpe port.cr3 tsofos port.cr3 pin function 0xx00x (frm) 0 x low 0xx00x (frm) 1 0 tdenn 0xx00x (frm) 1 1 tsofon 0xx010 (ifrac) 0 x low 0xx010 (ifrac) 1 x tfohenon 0xx011 (xfrac) x 0 tdenn 0xx011 (xfrac) x 1 tsofon 0xx10x (plcp) 0 x low 0xx10x (plcp) 1 x tpohsofn 0xx110 (ffrac) x 0 tdenn 0xx110 (ffrac) x 1 tsofon 1xx0xx (clr) x x low
ds3181/ds3182/ds3183/DS3184 125 of 389 table 10-24. tclkon/tgclkn/tp ohclkn output pin functions fm[5:0] port.cr2 tpfpe port.cr3 tclks port.cr3 pin function gap source 0xx00x (frm) 0 x low none 0xx00x (frm) 1 0 tgclkn tdenn 0xx00x (frm) 1 1 tclkon none 0xx010 (ifrac) 0 x low none 0xx010 (ifrac) 1 0 tgclkn tfohenon 0xx010 (ifrac) 1 1 tclkon none 0xx011 (xfrac) x x tclkon none 0xx10x (plcp) 0 x low none 0xx10x (plcp) 1 0 tpohclkn none 0xx10x (plcp) 1 1 tclkon none 0xx110 (ffrac) x 0 low none 0xx110 (ffrac) x 1 tclkon none 1xx0xx (clr) 0 x low none 1xx0xx (clr) 1 x tclkon none table 10-25. tpdatn input pin functions fm[5:0] port.cr2 tpfpe port.cr3 pin function 0xx0xx (frm) x low 0xxx0x (frm) x low 0xx110 (ffrac) x tpdatn 1xxxxx (clr) x low table 10-26. tpdenon output pin functions fm[5:0] port.cr2 tpfpe port.cr3 pin function 0xx0xx (frm) x low 0xxx0x (frm) x low 0xx110 (ffrac) x tpdenon 1xxxxx (clr) x low 10.5.9.2 receive plcp/fractional port pins the receive plcp/fractional pins are rpohn / rsern, rfohenin / rpdenin, rpdatn, rpohsofn / rsofon / rdenn / rfohenon and rpohclkn / rclkon / rgclkn. they have different functions based on the framing mode and other pin mode bits. unused input pin functions should drive a logic zero into the device circuits expecting a signal from that pin. the control bits that configure these pins are port.cr2 . fm[5:0], port.cr3 . rpfpe, port.cr3 . rsofos and port.cr3 . rclks.
ds3181/ds3182/ds3183/DS3184 126 of 389 table 10-27 to table 10-31 describe the function selected by the fm bits and other pin mode bits for the multiplexed pins. table 10-27. rsern/rpoh n output pin functions fm[5:0] port.cr2 rpfpe port.cr3 pin function 0xx00x (frm) 0 low 0xx00x (frm) 1 rsern 0xx010 (ifrac) 0 low 0xx010 (ifrac) 1 rsern 0xx011 (xfrac) x rsern 0xx10x (plcp) 0 low 0xx10x (plcp) 1 rpohn 0xx110 (ffrac) x rsern 1xx0xx (clr) 0 low 1xx0xx (clr) 1 rsern table 10-28. rpdenin / rfohenin input pin functions fm[5:0] port.cr2 rpfpe port.cr3 pin function 0xx00x (frm) x not used 0xx010 (ifrac) x not used 0xx011 (xfrac) x rfohenin 0xx10x (plcp) x not used 0xx110 (ffrac) x rpdenin 1xxxxx (clr) x not used table 10-29. rpdatn input pin functions fm[5:0] port.cr2 rpfpe port.cr3 pin function 0xx0xx (frm) x not used 0xxx0x (frm) x not used 0xx110 (ffrac) x rpdatn 1xxxxx (clr) x not used
ds3181/ds3182/ds3183/DS3184 127 of 389 table 10-30. rsofon/rdenn/rpohso fn/rfohenon output pin functions fm[5:0] port.cr2 rpfpe port.cr3 rsofos port.cr3 pin function 0xx00x (frm) 0 x low 0xx00x (frm) 1 0 rdenn 0xx00x (frm) 1 1 rsofon 0xx010 (ifrac) 0 x low 0xx010 (ifrac) 1 x rfohenon 0xx011 (xfrac) x 0 rdenn 0xx011 (xfrac) x 1 rsofon 0xx10x (plcp) 0 x low 0xx10x (plcp) 1 x rpohsofn 0xx110 (ffrac) x 0 rdenn 0xx110 (ffrac) x 1 rsofon 1xx0xx (clr) x x low table 10-31. rclkon/rgclkn/r pohclkn output pin functions fm[5:0] port.cr2 rpfpe port.cr3 rclks port.cr3 pin function gap source 0xx00x (frm) 0 x low none 0xx00x (frm) 1 0 rgclkn rden 0xx00x (frm) 1 1 rclkon none 0xx010 (ifrac) 0 x low none 0xx010 (ifrac) 1 0 rgclkn rfohenon 0xx010 (ifrac) 1 1 rclkon none 0xx011 (xfrac) x x rclkon none 0xx10x (plcp) 0 x low none 0xx10x (plcp) 1 0 rpohclkn none 0xx10x (plcp) 1 1 rclkon none 0xx110 (ffrac) x 0 low none 0xx110 (ffrac) x 1 rclkon none 1xx0xx (clr) 0 x low none 1xx0xx (clr) 1 x rclkon none 10.5.10 framing modes the framing modes are selected independently of the line interface modes using the port.cr2 . fm[5:0] control bits. different blocks are used in different framing modes. the bit error test (bert) function can be enabled in any mode. the liu, ja and line encoder/decoder blocks are selected by the line mode (lm[2:0]) code. the ?- ohm? mode, also known as ?externally defined frame mode?, is a mode that allow the use of the external frame overhead bit mask pins tohmin, tohmon and rohmin. this mode allows external logic to select bit
ds3181/ds3182/ds3183/DS3184 128 of 389 locations where another level of framing can add overhead bits such as sonet/sdh overhead bits. payload loopback (plb) is disabled in this mode. the ?clear-channel?ohm octet aligned? modes perform octet alignment to the overhead mask for atm and packets and the packets become octet stuffed instead of bit stuffed. see table 10-32 . table 10-32. framing mode select bits fm[5:0] fm[5:0] description line code system figure 0 00 000 ds3 c-bit b3zs/ami/uni atm/pkt figure 6-1 0 00 001 ds3 c-bit?ohm uni atm/pkt figure 6-2 0 00 010 ds3 c-bit internal fractional b3zs/ami/uni atm/pkt figure 6-3 0 00 011 ds3 c-bit external fractional b3zs/ami/uni atm/pkt figure 6-4 0 00 100 ds3 c-bit plcp b3zs/ami/uni atm figure 6-6 0 00 101 ds3 c-bit plcp?ohm uni atm figure 6-7 0 00 110 ds3 c-bit flexible fractional b3zs/ami/uni atm/pkt figure 6-5 0 01 000 ds3 m23 b3zs/ami/uni atm/pkt figure 6-1 0 01 001 ds3 m23?ohm uni atm/pkt figure 6-2 0 01 010 ds3 m23 internal fractional b3zs/ami/uni atm/pkt figure 6-3 0 01 011 ds3 m23 external fractional b3zs/ami/uni atm/pkt figure 6-4 0 01 100 ds3 m23 plcp b3zs/ami/uni atm figure 6-6 0 01 101 ds3 m23 plcp?ohm uni atm figure 6-7 0 01 110 ds3 m23 flexible fractional b3zs/ami/uni atm/pkt figure 6-5 0 10 000 e3 g.751 hdb3/ami/uni atm/pkt figure 6-1 0 10 001 e3 g.751?ohm uni atm/pkt figure 6-2 0 10 010 e3 g.751 internal fractional hdb3/ami/uni atm/pkt figure 6-3 0 10 011 e3 g.751 external fractional hdb3/ami/uni atm/pkt figure 6-4 0 10 100 e3 g.751 plcp hdb3/ami/uni atm figure 6-6 0 10 101 e3 g.751 plcp?ohm uni atm figure 6-7 0 10 110 e3 g.751 flexible fractional hdb3/ami/uni atm/pkt figure 6-5 0 11 000 e3 g.832 hdb3/ami/uni atm/pkt figure 6-1 0 11 001 e3 g.832?ohm uni atm/pkt figure 6-2 0 11 010 e3 g.832 internal fractional hdb3/ami/uni atm/pkt figure 6-3 0 11 011 e3 g.832 external fractional hdb3/ami/uni atm/pkt figure 6-4 0 11 100 reserved 0 11 101 reserved 0 11 110 e3 g.832 flexible fractional hdb3/ami/uni atm/pkt figure 6-5 1 00 0x0 ds3 clear channel b3zs/ami/uni atm/pkt figure 6-8 1 00 001 ds3 clear-channel?ohm uni atm/pkt figure 6-9 1 00 011 ds3 clear-channel?ohm octet aligned uni atm/pkt figure 6-10 1 01 0x0 sts-1 clear channel b3zs/ami/uni atm/pkt figure 6-8 1 01 001 sts-1 clear-channel?ohm uni atm/pkt figure 6-9 1 01 011 sts-1 clear-channel?ohm octet aligned uni atm/pkt figure 6-10 1 1x 0x0 e3 clear channel hdb3/ami/uni atm/pkt figure 6-8 1 1x 001 e3 clear-channel?ohm uni atm/pkt figure 6-9 1 1x 011 e3 clear-channel?ohm octet aligned uni atm/pkt figure 6-10
ds3181/ds3182/ds3183/DS3184 129 of 389 10.5.11 mapping modes cells and packets are mapped into various internally generated frame structures or mapped with no framing or mapped into an externally generated frame structure. when atm cells are mapped into an internally generated frame structure they are either directly mapped into a ds3 or e3 frame or they are mapped into a plcp frame and then the plcp frame is mapped into a ds3 or e3 frame. atm cells are always delineated using bit-by-bit hec searching except when byte aligned ohm modes are used, then hec is searched for byte-by-byte. hdlc packets are always use the bit stuffing protocol searching bit-by-bit except when byte aligned ohm modes are used, then they use the byte stuffing protocol. plcp framing is always searched for bit-by-bit. the following sections give examples of the major framed mapping configurations: 10.5.11.1 ds3 c-bit or ds3 m23 (with c-bit generation) direct and plcp mapping for direct mapping into ds3 c-bit and ds3 m23 (with c-bit generation) frames, atm cells are nibble aligned or bit aligned, hdlc packets are always bit aligned. for plcp mapping into ds3 c-bit and ds3 m23 (with c-bit generation) frames, the plcp frame is always nibble aligned. the atm cell nibble/bit alignment is controlled with the nad bit in the port.cr1 register. figure 10-13. ds3 c-bit or ds3 m 23 (with c-bit generation) frame 680 bits 7 sub- frames x 1 x 2 p 1 p 2 m 1 m 2 m 3 f 11 f 21 f 31 f 41 f 51 f 61 f 71 f 12 f 22 f 32 f 42 f 52 f 62 f 72 f 13 f 23 f 33 f 43 f 53 f 63 f 73 f 14 f 24 f 34 f 44 f 54 f 64 f 74 c 11 c 21 c 31 c 41 c 51 c 61 c 71 c 12 c 22 c 32 c 42 c 52 c 62 c 72 c 13 c 23 c 33 c 43 c 53 c 63 c 73 84 bits 84 bits 84 bits 84 bits 84 bits 84 bits 84 bits 84 bits in ds3 plcp framing, the atm cell is always cell aligned into the plcp frame, hdlc packets cannot be mapped into plcp frames. the ds3 plcp frame can only be mapped into a ds3 c-bit frame or ds3 m23 (with generated c-bits) frame. the nad control bit is ignored.
ds3181/ds3182/ds3183/DS3184 130 of 389 figure 10-14. ds3 plcp frame 13 or 14 nibbles 12 subframes a1 a2 subframe (57 bytes) z5 z4 z3 z2 z1 f1 b1 g1 m2 m1 c1 z6 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 p11 p10 p9 p8 p7 p6 p5 p4 p3 p2 p1 p0 53 payload bytes (1 cell) trailer 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 10.5.11.2 ds3 m23 (with c-bits used as payload) direct mapping for direct mapping into ds3 m23 (with the c-bits used as payload) frames, atm cells must be bit aligned, hdlc packets are always bit aligned. the nad bit must be set to one in this mode when direct mapping atm cells into ds3 m23 (with the c-bits used as payload) frames. note: plcp mapping into ds3 m23 (with the c-bits used as payload) frames will not operate correctly.
ds3181/ds3182/ds3183/DS3184 131 of 389 figure 10-15. ds3 m23 (with c-bits used as payload) frame 680 bits 7 sub- frames x 1 x 2 p 1 p 2 m 1 m 2 m 3 f 11 f 21 f 31 f 41 f 51 f 61 f 71 f 12 f 22 f 32 f 42 f 52 f 62 f 72 f 13 f 23 f 33 f 43 f 53 f 63 f 73 f 14 f 24 f 34 f 44 f 54 f 64 f 74 84 bits 84 bits 169 bits 169 bits 169 bits 10.5.11.3 e3 g.751 direct and plcp mapping for direct mapping into e3 g.751 frames, atm cells and hdlc packets are bit aligned. atm cells can also be plcp mapped to the e3 g.751 frame. when e3 plcp mapping is used, the first four bits of the payload (e3 frame bits 13,14,15 and 16) are forced to be 1100 and the rest of the payload is used for the plcp frame that is transmitted byte aligned. the nad bit is ignored. figure 10-16. e3 g.751 frame fas 384 payload bits 384 bits 4 rows a n 384 payload bits 384 payload bits 376 payload bits in e3 plcp framing, the atm cell is always cell aligned into the plcp frame, hdlc packets cannot be mapped into plcp frames. the e3 plcp frame can only be mapped into a e3 g.751 frame. the nad control bit is ignored.
ds3181/ds3182/ds3183/DS3184 132 of 389 figure 10-17. e3 plcp frame 9 sub- frames subframe z3 z2 z1 f1 b1 g1 m2 m1 c1 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 p8 p7 p6 p5 p4 p3 p2 p1 p0 trailer 18 or 20 bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes 53 payload bytes (1 cell) 10.5.11.4 example e3 g.751 internal fractional mapping the example e3 g.751 internal fractional mapping shown in figure 10-16 is accomplished using the internal fractional block. the first four bits of the e3. g.751 payload is designated fractional overhead this is done by setting section a (frac.tdasr) register of the fractional block to be overhead and setting its size to be four bits. the data group size (frac.tdgsr) register should be set to the length of the normal payload (1524) or any number greater than that. the four bits of fractional overhead (e3 frame bits 13,14,15 and 16) can be set to all ones, all zeros, or a 1010 pattern. both atm cell and hdlc packet mapping in this mode is bit aligned. the nad bit is ignored. figure 10-18. example e3 g.751 internal fractional frame fas 384 payload bits 384 bits 4 rows a n 384 payload bits 384 payload bits 372 payload bits xxxx 10.5.11.5 e3 g.832 direct mapping for mapping into e3 g.832 frames atm cells are byte aligned or bit aligned, hdlc packets are always bit aligned. the atm cell byte/bit alignment is controlled with the nad bit in the port.cr1 register. the nad bit is ignored when hdlc packets are mapped into the e3 g.832 frame.
ds3181/ds3182/ds3183/DS3184 133 of 389 figure 10-19. e3 g.832 frame fa1 em tr ma nr gc fa2 59 byte payload subframe 9 subframes 59 byte payload 59 byte payload 59 byte payload 59 byte payload 59 byte payload 59 byte payload 59 byte payload 58 byte payload 10.5.12 line interface modes the line interface modes can be selected semi-independently of the framing modes using the port.cr2 . lm[2:0] control bits. the major blocks controlled are the transmit liu (tx liu), receive liu (rx liu), jitter attenuator (ja) and the line encoder/decoder. the line encoder/decoder is used for b3zs, hdb3 and ami line interface encoding modes. the line encoder-decoder block is not used for line encoding or decoding in the uni mode but the bpv counter in it can be used to count external pulses on the rnegn / rclvn / rohmn pin. in ?ohm? modes, the line encoder-decoder does not count pulses on the rnegn / rlcvn / rohmn pin. the jitter attenuator (ja) can be off (off) or put in either the transmit (tx) or receive (rx) path with the tx liu or rx liu. both tx liu and rx liu can be enabled (on) or disabled (off). the ?analog loopback? (alb) is available when the liu is enabled or disabled. it is an actual loopback of the analog positive and negative pulses from the tx liu to the rx liu when the liu is enabled. if the liu is disabled, it is a digital loopback of the tlclk, tpos, tneg signals to the rlclk, rpos and rneg signals. when the line is configured for b3zs/hdb3/ami line codes, the line codes are determined by the framing mode and the tzcds and rzcds control the ami line mode selection bits in the line encoder/decoder blocks. the ds3 and cc52 framing modes select the b3zs line coding, the e3 framing modes select the hdb3 line codes. refer to table 10-33 for configuration.
ds3181/ds3182/ds3183/DS3184 134 of 389 table 10-33. line mode select bits lm[2:0] line.tcr . tzsd and line.rcr .rzsd lm[2:0] (port.cr2 ) line code liu ja 0 000 b3zs/hdb3 off off 0 001 b3zs/hdb3 on off 0 010 b3zs/hdb3 on tx 0 011 b3zs/hdb3 on rx 1 000 ami off off 1 001 ami on off 1 010 ami on tx 1 011 ami on rx x 1xx uni off off
ds3181/ds3182/ds3183/DS3184 135 of 389 10.6 utopia/pos-phy/spi-3 system interface 10.6.1 general description the utopia/pos-phy system interface transports atm cells or hdlc packets between the ds318x and an atm or link layer device. in utopia mode, the ds318x is connected to an atm layer device and cells are transported via a utopia l2 or utopia l3 bus. in pos-phy packet mode, the ds318x is connected to a link layer device and the packets are transported via a pos-phy 2 or a pos-phy 3 (or spi-3) bus. in pos-phy cell mode, the ds318x is connected to an atm layer device and cells are transported via a pos-phy 2 or a pos-phy 3 (or spi- 3) bus. the system interface supports 8-bit, 16-bit, or 32-bit transfers at a rate of 66 mhz or less. the receive direction removes cell/packet data for each port from the fifo, and outputs the cell/packet data to the atm/link layer device via the system interface. the transmit direction inputs the cell/packet data from the atm/link layer device via the system interface, and stores the cell/packet data for each port in the fifo. refer to figure 10-20 for the location of the system interface block in the ds318x devices. figure 10-20. system interface functional diagram ds3/e3 tr ans mit liu ieee p1149.1 jtag test access port microprocessor in t e r f a c e hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 rec eiv e framer trail trac e buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx pac ket processor ds3/e3 rec eiv e liu tais tua 1 tx fra c/ plcp rx fra c/ pl cp cloc k rate adapter tx bert rx bert plb alb ua 1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.6.2 features  programmable system interface type ? when performing cell mapping/demapping, the system interface can be programmed as a utopia level 2 bus, a utopia level 3 bus, a pos-phy level 2 bus, or a pos-phy level 3 (or spi-3) bus. when performing packet mapping/demapping, the system interface can be programmed as a pos-phy level 2 bus or a pos-phy level 3 (or spi-3) bus.  selectable system interface bus width ? the data bus can be a 32-bit, 16-bit, or 8-bit bus at operations speeds up to 66 mhz.  supports multiple ports on the system interface ? each line has its own port address for access via the system interface.  supports per-port system loopback ? each port can be placed in system loopback which causes cells/packets from the transmit fifo to be looped back to the receive fifo.  system interface byte reordering ? in 16-bit and 32-bit modes, the received/transmitted order of the bytes transferred across the system interface is programmable. i.e., the first byte received/transmitted by atm cell / packet processing can be transferred in [31:24] ([15:8]) or [7:0].
ds3181/ds3182/ds3183/DS3184 136 of 389 10.6.6 system interface bus controller the transmit and receive system interface bus controller can be programmed to operate as a utopia level 2, utopia level 3, pos-phy level 2, or pos-phy level 3 (or spi-3) bus controller. it controls the system interface bus timing and provides a common interface to the transmit and receive fifo for fifo status polling and cell/packet data transfer. normally, the first byte transmitted is transferred across the system interface as the most significant byte (tdata[31:24] in 32-bit mode or tdata[15:8] in 16-bit mode). if byte reordering is enabled, the first byte transmitted is transferred across the system interface as the least significant byte (tdata[7:0]).on the receive side, the first byte received is transferred across the system interface as the most significant byte (rdata[31:24] in 32-bit mode or rdata[15:8] in 16-bit mode). if byte reordering is enabled, the first byte received is transferred across the system interface as the least significant byte (rdata[7:0]). see figure 10-21 , figure 10-22 , figure 10-23 , and figure 10-24 . byte reordering is ignored in 8-bit mode. figure 10-21. normal packet format in 32-bit mode bit 31 bit 0 byte 1 byte 2 byte 3 byte 4 1 st transfer byte 5 byte 6 byte 7 byte 8 2 nd transfer             byte 4n-7 byte 4n-6 byte 4n-5 byte 4n-4 (n-1) th transfer byte 4n-3 byte 4n-2 byte 4n-1 byte 4n n th transfer figure 10-22. normal packet format in 16-bit mode bit 15 bit 0 byte 1 byte 2 1 st transfer byte 3 byte 4 2 nd transfer       byte 2n-3 byte 2n-2 (n-1) th transfer byte 2n-1 byte 2n n th transfer figure 10-23. byte reordered packet format in 32-bit mode bit 31 bit 0 byte 4 byte 3 byte 2 byte 1 1 st transfer byte 8 byte 7 byte 6 byte 5 2 nd transfer             byte 4n-4 byte 4n-5 byte 4n-6 byte 4n-7 (n-1) th transfer byte 4n byte 4n-1 byte 4n-2 byte 4n-3 n th transfer
ds3181/ds3182/ds3183/DS3184 137 of 389 figure 10-24. byte reordered packet format in 16-bit mode bit 15 bit 0 byte 2 byte 1 1 st transfer byte 4 byte 3 2 nd transfer       byte 2n-2 byte 2n-3 (n-1) th transfer byte 2n byte 2n-1 n th transfer 10.6.6.4 utopia level 2, transmit side in utopia level 2, an atm layer device pushes cells across the system interface. the atm layer device polls the individual ports of the ds318x to determine which ports have space available for a cell, and selects a port for cell transfer. more than one phy layer device can be present on a utopia level 2 bus. whether or not the hec byte is transferred with the cells is programmable. the transmit system interface bus controller accepts a transmit clock (tsclk), transmit address (tadr[4:0]), transmit enable ( ten ), and a transmit data bus consisting of transmit data (tdata[31:0]), transmit parity (tprty), and transmit start of cell (tsox). it outputs transmit direct cell available (tdxa) and transmit polled cell available (tpxa) signals. the transmit data bus is used to transfer cell data whenever one of the ports is selected for cell data transfer. tsox is asserted during the first transfer of a cell, cell data is transferred on tdata, and the data bus parity is indicated on tprty. all signals are sampled or updated using tsclk. the tdxa and tpxa signals are used to indicate when the transmit fifo has space available for a programmable number of cells. there is a tdxa for each port in the device. tdxa goes high when the associated port's transmit fifo has more space available than a programmable number of cells. tdxa goes low when the associated port's transmit fifo is full (does not have space for another cell). tpxa reflects the current status of a port's tdxa signal when the port is polled. the tpxa signal is tri-stated unless one of the ports is being polled for fifo fill status. 10.6.6.5 utopia level 3, transmit side in utopia level 3, the atm layer device pushes cells across the system interface. the atm layer device polls the individual ports of the ds318x to determine which ports have space available for a cell, and selects a port for cell transfer. only one phy layer device can be present on a utopia level 3 bus. whether or not the hec byte is transferred with the cells is programmable. the transmit system interface bus controller accepts a transmit clock (tsclk), transmit address (tadr[7:0]), transmit enable ( ten ), and a transmit data bus consisting of transmit data (tdata[31:0]), transmit parity (tprty), and transmit start of cell (tsox). it outputs transmit direct cell available (tdxa) and transmit polled cell available (tpxa) signals. the transmit data bus is used to transfer cell data whenever one of the ports is selected for cell data transfer. tsox is asserted during the first transfer of a cell, cell data is transferred on tdata, and the data bus parity is indicated on tprty. all signals are sampled or updated using tsclk. the tdxa and tpxa signals are used to indicate when the transmit fifo has space available for a programmable number of cells. there is a tdxa for each port in the device. tdxa goes high when the associated port's transmit fifo has more space available than a programmable number of cells. tdxa goes low when the associated port's transmit fifo is full (does not have space for another cell). tpxa reflects the current status of a port's tdxa signal when the port is polled. the tpxa signal is always driven. 10.6.6.6 utopia level 2, receive side in utopia level 2, the atm layer device pulls cells across the system interface. the atm layer device polls the individual ports to determine which ports have cells available, and selects a port for cell transfer. more than one
ds3181/ds3182/ds3183/DS3184 138 of 389 phy layer device can be present on a utopia level 2 bus. whether or not the hec byte is transferred with the cells is programmable. the receive system interface bus controller accepts a receive clock (rsclk), receive address (radr[4:0]), and receive enable ( ren ). it outputs a receive data bus consisting of receive data (rdata[31:0]), receive parity (rprty), and receive start of cell (rsox), as well as, receive direct cell available (rdxa) and receive polled cell available (rpxa) signals. the receive bus is used to transfer cell data whenever one of the ports is selected for cell data transfer. rsox is asserted during the first transfer of a cell, cell data is transferred on rdata, and the data bus parity is indicated on rprty. all signals are sampled or updated using rsclk. the data bus is tri-stated unless ren is asserted (low) and one of the ports is selected for data transfer. the rdxa and rpxa signals are used to indicate when the receive fifo has a programmable number of cells available for transfer. there is an rdxa for each port in the device. rdxa goes high when the associated port's receive fifo contains more than a programmable number of cells. rdxa goes low when the associated port's receive fifo is empty (does not contain any cells). rpxa reflects the current status of a port's rdxa signal when the port is polled. the rpxa signal is tri-stated unless one of the ports is being polled for fifo fill status. 10.6.6.2 utopia level 3, receive side in utopia level 3, the atm layer device pulls cells across the system interface. the atm layer device polls the individual ports to determine which ports have cells available, and selects a port for cell transfer. only one phy layer device can be present on a utopia level 3 bus. whether or not the hec byte is transferred with the cells is programmable. the receive system interface bus controller accepts a receive clock (rsclk), receive address (radr[7:0]), and receive enable ( ren ). it outputs a receive data bus consisting of receive data (rdata[31:0]), receive parity (rprty), and receive start of cell (rsox), as well as, receive direct cell available (rdxa) and receive polled cell available (rpxa) signals. the receive data bus is used to transfer cell data whenever one of the ports is selected for cell data transfer. rsox is asserted during the first transfer of a cell, cell data is transferred on rdata, and the data bus parity is indicated on rprty. all signals are sampled or updated using rsclk. the data bus is always driven. the rdxa and rpxa signals are used to indicate when the receive fifo has a programmable number of cells available for transfer. there is an rdxa for each port in the device. rdxa goes high when the associated port's receive fifo contains more than a programmable number of cells. rdxa goes low when the associated port's receive fifo is empty (does not contain any cell ends). rpxa reflects the current status of a port's rdxa signal when the port is polled. the rpxa signal is always driven. 10.6.6.3 pos-phy level 2, transmit side in pos-phy  level 2, the link layer device pushes packets across the system interface. the link layer device polls the individual ports of the ds318x to determine which ports have space available for packet data, and selects a port for packet data transfer. more than one phy layer device can be present on a pos-phy level 2 bus. the transmit system interface bus controller accepts a transmit clock (tsclk), transmit address (tadr[4:0]), transmit enable ( ten ), and a transmit data bus consisting of transmit data (tdata[31:0]), transmit parity (tprty), transmit start of packet (tsox), transmit end of packet (teop), transmit error (terr), and transmit modulus (tmod[1:0]). it outputs transmit direct packet available (tdxa), transmit polled packet available (tpxa), and transmit selected packet available (tspa) signals. the transmit data bus is used to transfer packet data whenever one of the ports is selected for packet data transfer. tsox is asserted during the first transfer of a packet, teop is asserted during the last transfer of a packet, terr is asserted when a packet has an error, tmod indicates the number of bytes transferred on tdata during the last transfer of a packet, packet data is transferred on tdata, and the data bus parity is indicated on tprty. all signals are sampled and updated using tsclk. the tdxa, tpxa, and tspa signals are used to indicate when the transmit fifo has space available for a programmable number of bytes. there is a tdxa for each port in the device. tdxa goes high when the associated port's transmit fifo has space available for more than a programmable number of bytes. tdxa goes low when the associated port's transmit fifo is full. tpxa reflects the current status of a port's tdxa signal when the system interface is in polled mode. tspa reflects the current status of a port's tdxa signal when the port is selected. the tspa signal is tri-stated unless ten is asserted (low) and one of the ports is selected for packet data transfer. the tpxa signal is tri-stated unless one of the ports is being polled for fifo fill status.
ds3181/ds3182/ds3183/DS3184 139 of 389 10.6.6.4 pos-phy  level 3 (or spi-3), transmit side in pos-phy level 3 (or spi-3), the link layer device pushes packets across the system interface. the link layer device polls the individual ports of the ds318x to determine which ports have space available for packet data, and selects a port for packet data transfer. only one phy layer device can be present on a pos-phy level 3 (or spi- 3) bus. the transmit system interface bus controller accepts a transmit clock (tsclk), transmit enable ( ten ), and a transmit data bus consisting of transmit data (tdata[31:0]), transmit parity (tprty), transmit start of packet (tsox), transmit end of packet (teop), transmit error (terr), transmit start of transfer (tsx), and transmit modulus (tmod[1:0]). it outputs transmit direct packet available (tdxa), transmit polled packet available (tpxa), and transmit selected packet available (tspa) signals. the transmit bus is used to transfer packet data whenever one of the ports is selected for packet data transfer. tsox is asserted during the first transfer of a packet, teop is asserted during the last transfer of a packet, terr is asserted when a packet has an error, tmod indicates the number of bytes transferred on tdata during the last transfer of a packet, tsx is asserted when the selected fifo's port address has been placed on tdata, packet data is transferred on tdata, and the data bus parity is indicated on tprty. all signals are sampled and updated using tsclk. the tdxa, tpxa, and tspa signals are used to indicate when the transmit fifo has space available for a programmable number of bytes. there is a tdxa for each port in the device. tdxa goes high when the associated port's transmit fifo has space available for more than a programmable number of bytes. tdxa goes low when the associated port's transmit fifo is full. tpxa reflects the current status of a port's tdxa signal when the port is polled. tspa reflects the current status of a port's tdxa signal when the port is selected. the tpxa and tspa signals are always driven. 10.6.6.5 pos-phy level 2, receive side in pos-phy level 2, the link layer device pulls packets across the system interface. the link layer device polls the individual ports to determine which ports have packet data available, and selects a port for packet data transfer. more than one phy layer device can be present on a pos-phy level 2 bus. the receive system interface bus controller accepts a receive clock (rsclk), receive address (radr[4:0]), and receive enable ( ren ). it outputs a receive data bus consisting of receive data (rdata[31:0]), receive parity (rprty), receive start of packet (rsox), receive end of packet (reop), receive error (rerr), receive data valid (rval), and receive modulus (rmod[1:0]), as well as, a receive direct packet available (rdxa) signal and a receive polled packet available (rpxa) signal. the receive data bus is used to transfer packet data whenever one of the ports is selected for packet data transfer. rsox is asserted during the first transfer of a packet, reop is asserted during the last transfer of a packet, rerr is asserted when a packet has an error, rmod indicates the number of bytes transferred on rdata during the last transfer of a packet, rval is asserted when the receive data bus is valid, rdata transfers packet data, and rprty indicates the data bus parity. all signals are sampled and updated using rsclk. the rdxa and rpxa signals are used to indicate when the receive fifo has a programmable number of bytes or an end of packet available for transfer. there is an rdxa for each port in the device. rdxa goes high when the associated port's receive fifo contains more than a programmable number of bytes or an end of packet. rdxa goes low when the associated port's receive fifo is empty. rpxa reflects the current status of a port's rdxa signal when the port is polled. the data bus is tri-stated unless ren is asserted (low) and one of the ports is selected for packet data transfer. the rpxa signal is tri-stated unless one of the ports is being polled for fifo fill status. 10.6.6.6 pos-phy level 3 (or spi-3), receive side in pos-phy level 3, the ds318x pushes packets across the system interface. the ds318x selects a port for packet data transfer when it has packet data available. only one phy layer device can be present on a pos-phy level 3 (or spi-3) bus. the receive system interface bus controller accepts a receive clock (rsclk) and receive enable ( ren ). it outputs a receive data bus consisting of receive data (rdata[31:0]), receive parity (rprty), receive start of packet (rsox), receive end of packet (reop), receive error (rerr), receive data valid (rval), receive start of transfer (rsx), and receive modulus (rmod[1:0]). the receive data bus is used to transfer packet data whenever one of the ports has packet data available for transfer. rsox is asserted during the first transfer of a packet, reop is asserted during the last transfer of a packet, rerr is asserted when a packet has an error, rmod indicates the number of bytes transferred on rdata during the last transfer of a packet, rsx is asserted when the link layer port address has been placed on rdata, rval is asserted when the receive data bus is valid, rdata transfers
ds3181/ds3182/ds3183/DS3184 140 of 389 packet data, and rprty indicates the data bus parity. all signals are sampled and updated using rsclk. the data bus is always driven. in pos-phy level 3 (or spi-3) the receive system interface bus controller determines which port to transfer data from using a round-robin arbitration scheme (the ports are checked one after another in numerical order according to their line number x (r[x]dt[1:8]). a transfer is initiated from a port when it is not almost empty (contains more data than the almost empty level or contains an end of packet). transfer from a port is terminated when the maximum burst length has been transferred, the fifo is emptied, or an end of packet is transferred while the receive fifo is almost empty (contains the same or less data than the almost empty level and does not contain an end of packet). when a transfer is terminated, a transfer is initiated from the next available port that is not almost empty. at the end of a packet or between a transfer from one port and the transfer from the next port, rval will go low for a programmable number of clock cycles (0-7) to allow the pos-phy master to halt data transfer. at the end of a packet, data transfer will continue from the same port if the port is not almost empty. when the maximum burst length has been transferred, data transfer will continue from the same port if no other port has data available, and the port is not almost empty. the maximum burst length is programmable (8 ? 256 bytes in four byte increments), or can be disabled.
ds3181/ds3182/ds3183/DS3184 141 of 389 10.7 atm cell / hdlc packet processing 10.7.1 general description the atm cell / packet processing demaps the atm cells or hdlc packets from the receive data stream and maps atm cells or hdlc packets into the transmit data stream. atm cell / packet processing supports any framed or unframed bit synchronous or byte synchronous (octet aligned) data stream with a bit or byte rate of 52 mhz or less. the receive direction extracts the payload from physical data stream, performs cell/packet processing on the individual lines, and stores the cell/packet data from each line in the fifo. the transmit direction removes the cell/packet data for each line from the fifo, performs cell/packet processing for each individual line and inserts the payload into the physical data stream. refer to figure 10-25 for the location of the cell/packet processing block in the ds318x devices. figure 10-25. atm cell/hdlc packet functional diagram ds3/e3 tr ans mit liu ieee p1149.1 jtag test access port microprocessor in t e r f a c e hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 rec eiv e framer trail trac e buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx pac ket processor ds3/e3 rec eiv e liu tais tua 1 tx fra c/ plcp rx fra c/ pl cp cloc k rate adapter tx bert rx bert plb alb ua 1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.7.2 features general  up to 4 data lines(ports) each with a bit or byte rate of 0-52 mhz  supports bit or byte wide, framed or unframed data lines ? each port is programmable as bit synchronous or octet aligned, the data stream can be framed or unframed, and the clock can be continuous or gapped.  bit reordering ? the received/transmitted order of the bits as transferred across the system interface is programmable on a per-port basis. that is, in bit synchronous mode, the first bit received/transmitted by atm cell/packet processing can be transferred in bit position 7 (31, 23, 15, or 7) or bit position 0 (24, 16, 8, or 0). in octet aligned mode, the bit received/transmitted by atm cell/packet processing in bit position 7 can be transferred in bit position 7 (31, 23, 15, or 7) or bit position 0 (24, 16, 8, or 0). atm cell processor  programmable hec insertion and extraction ? the transmit side can be programmed to accept cells from the system interface that do or do not contain a hec byte. if cells are transferred without a hec byte, the hec byte will be computed and inserted. if cells are transferred with a hec byte, then the transferred hec byte can be programmed to be passed through or overwritten with a newly calculated hec. the receive side can be programmed to send cells to the system interface that do or don't contain the hec byte.
ds3181/ds3182/ds3183/DS3184 142 of 389  programmable erred cell insertion ? an hec error mask can be programmed for insertion of single or multiple errors individually or continuously at a programmable rate.  programmable transmit cell synchronization ? the transmit data line can be provisioned to be bit synchronous or octet aligned.  plcp or hec based cell delineation ? cell delineation is determined from the plcp frame during plcp framing modes, and from the hec during all other atm modes.  programmable header cell pass-through ? receive cell filtering can pass-through only those cells that matching a programmable header value.  selectable idle/unassigned/invalid/programmable header cell padding and filtering ? transmit cell padding can be programmed for idle cell or programmable header cell padding. the padded cell payload byte contents are also programmable. receive cell filtering can be programmed for any combination of idle cell, unassigned cell, invalid cell, or programmable header cell filtering. or, all cell filtering can be disabled.  optional header error correction ? receive side single bit header error correction can enabled.  separate corrected and uncorrected erred cell counts ? separate counts of erred cells containing a corrected hec error, and cells containing non-corrected hec errors are kept.  optional hec uncorrected erred cell filtering ? uncorrected erred cell extraction can be disabled.  selectable cell scrambling/descrambling ? cell scrambling and/or descrambling can be disabled. the scrambling can be a self-synchronous scrambler (x 43 + 1) over the payload only, a self-synchronous scrambler over the entire cell, or a distributed sample scrambler (x 31 + x 28 + 1).  optional hec calculation coset polynomial addition ? the performance of coset polynomial addition during hec calculation can be disabled. hdlc packet processor  programmable fcs insertion and extraction ? the transmit side can be programmed to accept packets from the system interface that do or don't contain fcs bytes. if packets are transferred without fcs bytes, the fcs will be computed and appended to the packet. if packets are transferred with fcs bytes, then the fcs can be programmed to be passed through or overwritten with a newly calculated fcs. the receive side can be programmed to send packets to the system interface that do or don't contain fcs bytes.  programmable transmit packet synchronization ? the transmit data line can be provisioned to be bit synchronous or octet aligned.  programmable fcs type ? the fcs can be programmed to be a 16-bit fcs or a 32-bit fcs.  supports fcs error insertion ? fcs error insertion can be programmed for insertion of errors individually or continuously at a programmable rate.  supports bit or byte stuffing/destuffing ? the bit or byte synchronous (octet aligned) mode determines the bit or byte stuffing/destuffing.  programmable packet size limits ? the receive side can be programmed to abort packets over a programmable maximum size or under a programmable minimum size. the maximum packet size allowed is 65,535 bytes.  selectable packet scrambling/descrambling ? packet scrambling and/or descrambling can be disabled.  separate fcs erred packet and aborted packet counts ? separate counts of aborted packets, size violation packets, and fcs erred packets are kept.  optional erred packet filtering ? erred packet extraction can be disabled  programmable inter-frame fill ? the transmit inter-frame fill value is programmable. 10.7.3 transmit cell/packet processor the transmit cell processor and transmit packet processor both receive the 32-bit parallel data stream from the transmit fifo, however, only one of the processors will be enabled. which processor is enabled is determined by the system interface mode. in utopia mode, the transmit cell processor is enabled. in pos-phy mode, if the port.cr2 .pmcpe bit is low, the transmit packet processor is enabled. if the port.cr2 .pmcpe bit ( port.cr2 ) is high, the transmit cell processor is enabled. 10.7.4 receive cell/packet processor the receive cell processor and receive packet processor both receive the incoming data stream from the receive framer (minus all overhead and stuff data), however, only one of the processors will be enabled. the other will be disabled. which processor is enabled is determined by the system interface mode. in utopia mode,
ds3181/ds3182/ds3183/DS3184 143 of 389 the receive cell processor is enabled. in pos-phy mode, if the port.cr2 .pmcpe bit is low, the receive packet processor is enabled. if the port.cr2 .pmcpe bit is high, the receive cell processor is enabled. the bits in a byte are received msb first, lsb last. when they are output serially, they are output msb first, lsb last. the bits in a byte in an incoming signal are numbered in the order they are received , 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7], and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. 10.7.5 cell processor 10.7.5.1 transmit cell processor the transmit cell processor accepts data from the transmit fifo and performs bit reordering, cell padding, hec processing, cell error insertion, and cell scrambling. the data output from the transmit cell processor can be either a serial data stream (bit synchronous mode) or an 8-bit parallel data stream (octet-aligned mode). cell processing can be disabled (clear-channel enable). disabling cell processing disables cell padding, hec processing, and cell error insertion. only bit reordering and cell scrambling are not disabled. when cell processing is disabled, data is continually read out of the transmit fifo. when the transmit fifo is empty, the output data stream is padded with ffh until the transmit fifo contains more data than the "almost empty" level. the 32-bit data words read from the transmit fifo are multiplexed into an 8-bit parallel data stream and passed on to bit reordering. bit reordering changes the bit order of each byte. if bit reordering is enabled, the incoming 8-bit data stream dt[7:0] with dt[7] being the msb and dt[0] being the lsb is rearranged so that the msb is in dt[0] and the lsb is in dt[7] of the outgoing data stream dt[7:0]. in bit synchronous mode, dt[7] is the first bit transmitted. if cell processing is disabled the data stream is passed on to cell scrambling, bypassing cell padding, hec processing, and cell error insertion. cell padding inserts fill cells. after a cell end, fill cells are inserted into the data stream if the transmit fifo does not contain a complete cell. the fill cell type and fill cell payload value are programmable. the resulting data stream is passed on to hec processing. if cell processing is disabled, cell padding will not be performed. hec processing calculates a hec and inserts it into the ce ll. hec calculation is a crc-8 calculation over the four header bytes. the polynomial used is x 8 + x 2 + x + 1. the coset polynomial, x 6 + x 4 + x 2 + 1, is added (modulo 2) to the residue. the calculated hec is then inserted into the byte immediately following the header. hec coset polynomial addition is programmable. if the cell received from the transmit fifo contains a hec byte, the received hec byte can be passed through or overwritten with the calculated hec byte. hec byte pass through is programmable. if the cell received from the transmit fifo does not contain a hec byte, the calculated hec byte is inserted into the cell. if cell processing is disabled, hec processing will not be performed. cell error insertion inserts errors into the hec byte. the hec bits to be errored are programmable. error insertion can be controlled by a register or by the manual error insertion input (tmei). the error insertion initiation type (register or input) is programmable. if a register controls error insertion, the number and frequency of the errors are programmable. if cell processing is disabled, cell error insertion will not be performed. cell scrambling can scramble the 48-byte cell payload, scramble the entire cell data stream, or scramble the data stream with a distributed sample scrambler (dss). if the payload or the entire data stream is scrambled, a self- synchronous scrambler with a generation polynomial of x 43 + 1 is used. for payload scrambling, the scrambler scrambles the 48-byte payload, and does not scramble the four header or the hec bytes. for a dss scrambled data stream, a distributed sample scrambler with a generation polynomial of x 31 + x 28 + 1 is used for scrambling. the transmit dss scrambler scrambles the 48-byte payload and the four byte header. scrambles the first hec bit (hec[1]) with the first transmit dss scrambler sample (the transmit dss scrambler bit from 211 bits earlier), scrambles the second hec bit (hec[2]) with the second transmit dss scrambler sample (the current transmit dss scrambler bit), and. does not scramble the remaining he c bits (hec[3:8]). dss scrambling can only be performed in bit synchronous mode. cell scrambling is programmable (payload, entire data stream, or dss). if cell processing is disabled, the entire data stream will be scrambled whenever scrambling is enabled once all cell processing has been completed, in bit synchronous mode, the 8-bit parallel data stream is multiplexed into a serial data stream and passed on. in octet aligned mode, the 8-bit parallel data stream is passed on.
ds3181/ds3182/ds3183/DS3184 144 of 389 10.7.5.2 receive cell processor the receive cell processor performs cell descrambling, cell delineation, cell filtering, header pattern comparison, ocd detection, hec error monitoring, hec byte filtering, and bit reordering. the data coming in can be either a serial data stream (bit synchronous mode) or an 8-bit parallel data stream (octet aligned mode). the type of data stream received affects cell descrambling and cell delineation, however, it does not affect ocd detection, hec error monitoring, cell filtering, header pattern comparison, hec byte filtering, or bit reordering. cell processing can be disabled (clear-channel enable). disabling cell processing disables cell delineation, ocd detection, cell filtering, header pattern comparison, hec error monitoring, and hec byte filtering. only cell descrambling and bit reordering are not disabled. cell descrambling can descramble the 48-byte cell payload, descramble the entire cell data stream, or descramble a data stream scrambled by a distributed sample scrambler (dss). if the payload or the entire data stream is descrambled, a self-synchronous scrambler with a generation polynomial of x 43 + 1 is used for descrambling. payload descrambling descrambles the 48-byte payload, and does not descramble the four header bytes or the hec byte . for a dss scrambled data stream, a distributed sample scrambler with a generation polynomial of x 31 + x 28 + 1 is used for descrambling. the receive dss scrambler is synchronized to the transmit dss scrambler by dss scrambler synchronization. dss descrambling can only be performed in bit synchronous mode. cell descrambling is programmable (payload, entire data stream, or dss). in bit synchronous mode, descrambling is performed one bit at a time, and the serial data stream is demultiplexed in to an 8-bit data stream before being passed on. in octet aligned mode, descrambling is performed 8-bits at a time, and only payload or entire data stream descrambling can be performed. when cell processing is disabled, the entire data stream will be descrambled if descrambling is enabled. dss scrambler synchronization synchronizes the receive dss scrambler with the transmit dss scrambler used to scramble the incoming data stream. the dss scrambler synchronization state machine has three states: "acquisition", "verification", and "steady state". the "acquisition" state adds the transmit dss scrambler samples from 16 incoming cells into the receive dss scrambler (32 samples total). the samples are derived from the two msbs (hec[1:2]) of the incoming hec byte. each time the samples in a cell are loaded into the receive dss scrambler, the confidence counter is incremented. when the confidence counter reaches 16, dss scrambler synchronization transitions to the ?verification? state. the "verification" state verifies the samples in the incoming cells by comparing the samples from the cell with the corresponding receive dss scrambler bits. each time both samples from a cell match the corresponding receive dss scrambler bits, the confidence counter is incremented. each time one of the samples from a cell does not match the corresponding receive dss scrambler bit, the confidence counter is decremented if the confidence counter reaches 24, dss scrambler synchronization transitions to the ?steady state? state. if the confidence counter reaches 8, dss scrambler synchronization transitions to the ?acquisition? state. the "steady state" state continues to verify the samples in the incoming cells. each time both samples from a cell match the corresponding receive dss scrambler bits, the confidence counter is incremented (maximum count = 24). each time one of the samples from a cell does not match the corresponding receive dss scrambler bit, the confidence counter is decremented. if the confidence counter reaches 16, dss scrambler synchronization transitions to the ?acquisition? state. the dss scrambler synchronization state diagram is shown in figure 10-26 . dss scrambler synchronization starts in the ?acquisition? state. note: all atm cells are discarded during the ?acquisition? and ?verification? states.
ds3181/ds3182/ds3183/DS3184 145 of 389 figure 10-26. receive dss scrambler synchronization state diagram steady state acquisition verification 8 cells fail verification 32 samples loaded 8 c e l l s p a s s v e r i f i c a t i o n 8 c e l l s f a i l v e r i f i c a t i o n if cell processing is disabled, a cell boundary is arbitrarily chosen, and the data is divided into "cells" whose size is programmable. if hec transfer is enabled in the receive system interface, the incoming data stream will be divided into 53-byte "cells". if hec transfer is disabled in the receive system interface, the data is divided into 52-byte "cells". these cells are then passed on to bit reordering bypassing cell delineation, ocd detection, cell filtering, header pattern comparison, hec error monitoring, and hec byte filtering. cell delineation determines the cell boundary by identifying the header bytes and the hec byte of a cell, and detects an out of cell delineation (ocd) condition or a change of cell delineation (cocd). cell delineation is performed off-line, and the data path cell boundary is only updated by cell delineation if an ocd condition is present. performing cell delineation off-line results in fewer cells being discarded when the cell boundary changes. if dss scrambling is enabled (bit synchronous mode only), only the six least significant bits (lsbs) of the hec (hec[3:8]) are used for cell delineation, as the two most significant bits (msbs) are scrambled. an ocd condition is declared if seven consecutive cells are received with incorrect hec bytes. an ocd condition is terminated if ?delta? consecutive cells are received with correct hec bytes, if cell delineation updates the data path cell boundary, or if the plcp framer updates the data path cell boundary (plcp modes only). all atm cells are discarded during an ocd condition. a cocd is declared when cell delineation or the plcp framer updates the data path cell boundary with a cell boundary that is different from the current data path cell boundary . cell delineation has three states: "hunt", "presync", and "sync". the "hunt" state searches for the cell boundary. each time slot is checked for an hec byte (six lsbs of the hec byte if dss is enabled). the cell boundary is set once the header and hec bytes are identified, and cell delineation transitions to the ?presync? state. the "presync" state verifies the cell boundary identified in the ?hunt? state. the hec is checked in each incoming cell. if ?delta? cells (including the "hunt" to "presync" transition cell) with a correct hec are received, cell delineation transitions to the ?sync? state. if a cell with an incorrect hec is received, cell delineation transitions to the ?hunt? state. the "sync" state checks the hec in each cell. if a cell with a correct hec is received, cell delineation updates the data path cell boundary if an ocd condition is present. if a cell with an incorrect hec is received, cell delineation transitions to the ?hunt? state. the cell delineation state diagram is shown in figure 10-27 . the cell delineation process starts in the "hunt" state. in octet-aligned mode, the hec check is performed one byte at a time, so up to 53 checks may be needed to find the cell boundary. in bit synchronous mode, the hec check is performed one bit at a time, so up to 424 checks may be needed to find the cell boundary. hec calculation coset polynomial addition can be disabled. the cell delineation process can be programmed to ignore the first header byte (for dqdb applications) when calculating the hec. if cell processing is disabled, cell delineation will not be performed. a
ds3181/ds3182/ds3183/DS3184 146 of 389 ?delta? of eight is used during the ds3 clear-channel, sts-1 clear-channel, and e3 clear-channel modes. a ?delta? of six is used during all other modes including the ds3 clear-channel?ohm; sts-1 clear-channel?ohm; and e3 clear-channel?ohm modes. in bit synchronous mode, the serial data stream is demultiplexed into an 8-bit parallel data stream (as determined by the data path cell boundary updated) before being passed on to cell filtering. figure 10-27. cell delineation state diagram sync hunt presync incorrect hec correct hec d e l t a c o r r e c t h e c s i n c o r r e c t h e c cell filtering discards specific cell types. the 8-bit parallel data stream is monitored for idle, unassigned, and invalid cells. (cells discarded during cell delineation or dss descrambling are not monitored for cell filtering.) if cell filtering is enabled and the indicated cell type is found, the cell is discarded. idle cell, unassigned cell, and invalid cell filtering are programmable. idle cells have a header value of 00000000 00000000 00000000 00000001. unassigned cells have a header value of xxxx 0000 00000000 00000000 0 000xxx0. where x can be any value. invalid cells have a header value of xxxxyyyy yy yy0000 00000000 000 0xxxx. where x can be any value and yyyyyyyy can be any value other than 00000000. all cells discarded are counted. if cell processing is disabled, cell filtering will not be performed. header pattern comparison checks for a specific pattern in the header, and either discards and counts cells with a matching header (discard match), discards and counts cells without a matching header (discard no match), counts cells with a matching header (count match), or counts cells without a matching header (count no match). (cells discarded during ocd detection, dss descrambling, or cell filtering processes are not monitored for header pattern comparison.) the 8-bit parallel data stream is monitored for cells that have a header that matches the comparison header. in discard match mode, cells with a matching header are counted and discarded. in discard no match mode, cells without a matching header are counted and discarded. in count match mode, cells with a matching header are counted and passed on. in count no match mode, cells without a matching header are counted and passed on. the comparison header and comparison header pattern mode are programmable. if cell processing is disabled, header pattern comparison will not be performed. hec error monitoring checks the hec and detects errored and correctable cell headers. (cells discarded during ocd detection, dss descrambling, cell filtering, or header pattern comparisons are not monitored for hec errors.). hec error monitoring has two states, the "correction" and "detection" states. . in the ?correction? state, cells
ds3181/ds3182/ds3183/DS3184 147 of 389 received without any header errors (good cells) are passed on. cells received with a single header error (correctable cells) are corrected and passed on. the corrected cell count is incremented. cells received with multiple errors are considered errored cells. if errored cell extraction is enabled, errored cells are discarded, and the errored cell count is incremented. if errored cell extraction is disabled, errored cells are passed on. if a cell is received with an incorrect hec, hec error monitoring transitions to the ?detection? state. in the ?detection? state, good cells are passed on. cells received with one or more errors are considered errored cells. if m cells are received with a correct hec or the data path cell boundary is updated, hec error monitoring will transition to the ?correction? state. the value of m is programmable (1, 2, 4, or 8). the hec error monitoring state diagram is shown in figure 10-28 . hec error monitoring starts in the ?correction? state. if header error correction is disabled, hec error monitoring will remain in the ?detection? state. if cell processing is disabled, hec error monitoring will not be performed. figure 10-28. hec error monitoring state diagram detection correction mth good cell corrected cell errored cell cell boundary update hec byte filtering discards the hec byte. if hec transfer is disabled in the receive system interface, the hec byte is extracted from the cell and discarded. the resulting 52-byte cell is then passed on for storage in the receive fifo. if hec transfer is enabled, the 53-byte cell is passed on for storage in the receive fifo. if cell processing is disabled, hec byte filtering will not be performed. bit reordering changes the bit order of each byte. if bit reordering is enabled, the incoming 8-bit data stream dt[7:0] with dt[7] being the msb and dt[0] being the lsb is rearranged so that the msb is in dt[0] and the lsb is in dt[7] of the outgoing fifo data stream dt[7:0]. in bit synchronous mode, dt[7] is the first bit received. once all cell processing has been completed, the 8-bit parallel data stream is demultiplexed into a 32-bit parallel data stream and passed on to the receive fifo. cells are stored in the receive fifo in a cell format. regardless of whether or not they are transferred across a utopia or pos-phy interface. the cell format for a 53-byte cell with a 32-bit bus is shown in figure 10-29 . the cell format for a 52-byte cell with a 32-bit bus is shown in figure 10-30 . figure 10-29. cell format for 53-byte cell with 32-bit data bus bit 31 bit 0 header 1 header 2 header 3 header 4 1 st transfer hec 00h 00h 00h 2 nd transfer payload 1 payload 2 payload 3 payload 4 3 rd transfer payload 5 payload 6 payload 7 payload 8 4 th transfer             payload 41 payload 42 payload 43 payload 44 13 th transfer payload 45 payload 46 payload 47 payload 48 14 th transfer
ds3181/ds3182/ds3183/DS3184 148 of 389 figure 10-30. cell format for 52-byte cell with 32-bit data bus bit 31 bit 0 header 1 header 2 header 3 header 4 1 st transfer payload 1 payload 2 payload 3 payload 4 2 nd transfer payload 5 payload 6 payload 7 payload 8 3 rd transfer             payload 41 payload 42 payload 43 payload 44 12 th transfer payload 45 payload 46 payload 47 payload 48 13 th transfer 10.7.6 packet processor 10.7.6.1 transmit packet processor the transmit packet processor accepts data from the transmit fifo performs bit reordering, fcs processing, packet error insertion, stuffing, packet abort sequence insertion, inter-frame padding, and packet scrambling. the data output from the transmit packet processor can be either a serial data stream (bit synchronous mode) or an 8- bit parallel data stream (octet-aligned mode). the type of data stream output from the transmit packet processor affects stuffing, abort insertion, inter-octet padding, inter-frame padding, and packet scrambling, however, it does not affect bit reordering, fcs processing, or packet error insertion. packet processing can be disabled (clear- channel enable). disabling packet processing disables fcs processing, packet error insertion, stuffing, packet abort sequence insertion, and inter-frame padding. only bit reordering and packet scrambling are not disabled. when packet processing is disabled, data is continually read out of the transmit fifo. when the transmit fifo is read empty, the output data stream will be padded with ffh until the transmit fifo contains more data than the "almost empty" level. the 32-bit data words read from the transmit fifo are multiplexed into an 8-bit parallel data stream and passed on to bit reordering. bit reordering changes the bit order of each byte. if bit reordering is enabled, the incoming 8-bit data stream dt[7:0] with dt[7] being the msb and dt[0] being the lsb is rearranged so that the msb is in dt[0] and the lsb is in dt[7] of the outgoing data stream dt[7:0]. in bit synchronous mode, dt[7] is the first bit transmitted. if packet processing is disabled the data stream is passed on to packet scrambling, bypassing fcs processing, packet error insertion, stuffing, packet abort sequence insertion, and inter-frame padding. if packet processing is disabled in bit synchronous mode, the serial data stream is demultiplexed in to an 8-bit data stream before being passed on. fcs processing calculates a fcs and appends it to t he packet. fcs calculation is a crc-16 or crc-32 calculation over the entire packet. the polynomial used for fcs-16 is x 16 + x 12 + x 5 + 1. the polynomial used for fcs-32 is x 32 + x 26 + x 23 + x 22 + x 16 + x 12 + x 11 + x 10 + x 8 + x 7 + x 5 + x 4 + x 2 + x + 1. the fcs is inverted after calculation. the fcs type is programmable. if fcs append is enabled, the calculated fcs is appended to the packet. if fcs append is disabled, the packet is transmitted without a fcs. the fcs append mode is programmable. if packet processing is disabled, fcs processing is not performed. packet error insertion inserts errors into the fcs bytes. a single fcs bit is corrupted in each errored packet. the fcs bit corrupted is changed from errored packet to errored packet. error insertion can be controlled by a register or by the manual error insertion input (tmei). the error insertion initiation type (register or input) is programmable. if a register controls error insertion, the number and frequency of the errors are programmable. if fcs append is disabled, packet error insertion will not be performed. if packet processing is disabled, packet error insertion is not performed. stuffing inserts control data into the packet to prevent packet data from mimicking flags. stuffing is performed from the beginning of a packet until the end of a packet. in bit synchronous mode, the 8-bit parallel data stream is
ds3181/ds3182/ds3183/DS3184 149 of 389 multiplexed into a serial data stream, and bit stuffing is performed. bit stuffing consists of inserting a '0' directly following any five contiguous '1's. in octet aligned mode, byte stuffing is performed. byte stuffing consists of detecting bytes that mimic flag and escape sequence bytes (7eh and 7dh), and replacing the mimic bytes with an escape sequence (7dh) followed by the mimic byte exclusive ored with 20h. if packet processing is disabled, stuffing is not performed. inter-frame padding inserts start flags, end flags and inter-frame fill between packets. there will be at least one flag plus a programmable number of additional flags between packets. in octet aligned mode, the inter-frame fill is flags. in bit synchronous mode, the inter-frame fill can be flags or all 1s followed by a start flag. if the inter-frame fill is all '1's, the number of '1's between the end and start flags may not be an integer number of bytes, however, there will be at least 15 consecutive '1's between the end and start flags. the bit synchronous mode inter-frame padding type is programmable. if packet processing is disabled, inter-frame padding is not performed. packet abort insertion inserts a packet abort sequences as necessary. if a packet abort indication is detected, a packet abort sequence is inserted and inter-frame padding is done until a packet start flag is detected. in bit synchronous mode, the abort sequence is ffh. in octet aligned mode, the abort sequence is 7d7eh. if packet processing is disabled, packet abort insertion is not performed. the packet scrambler is a x 43 + 1 self-synchronous scrambler that scrambles the entire packet data stream. packet scrambling is programmable. once all packet processing has been completed, in bit synchronous mode, the 8-bit parallel data stream is multiplexed into a serial data stream and passed on. in octet aligned mode, the 8-bit parallel data stream is passed on. 10.7.6.2 receive packet processor the receive packet processor performs packet descrambling, packet delineation, inter-frame fill filtering, packet abort detection, destuffing, packet size checking, fcs error monitoring, fcs byte extraction, and bit reordering. the data coming in can be either a serial data stream or an 8-bit parallel data stream, depending on the framing mode (see table 10-32 for configuration information). the type of data stream received affects packet descrambling, packet delineation, inter-frame fill filtering, packet abort detection, and destuffing, however, it does not affect packet size checking, fcs error monitoring, fcs byte extraction, or bit reordering. packet processing can be disabled (clear-channel enable). disabling packet processing disables packet delineation, inter-frame fill filtering, packet abort detection, destuffing, packet size checking, fcs error monitoring, and fcs byte extraction. only packet descrambling and bit reordering are not disabled. the packet descrambler is a self-synchronous x 43 + 1 descrambler that descrambles the entire packet data stream. packet descrambling is programmable. if packet processing is disabled in bit synchronous mode, the serial data stream is demultiplexed in to an 8-bit data stream before being passed on. if packet processing is disabled, a packet boundary is arbitrarily chosen, and the data is divided into "packets" whose size is programmable (maximum packet size setting). these packets are then passed on to bit reordering bypassing packet delineation, inter-frame fill filtering, packet abort detection, destuffing, packet size checking, fcs error monitoring, and fcs byte extraction. packet delineation determines the packet boundary by identifying a packet start or end flag. each time slot is checked for a flag sequence (7eh). once a flag is found, it is identified as a start or end flag, and the packet boundary is set. if packet processing is disabled, packet delineation is not performed. inter-frame fill filtering removes the inter-frame fill between packets. when a packet end flag is detected, all data is discarded until a packet start flag is detected. in bit synchronous mode, the inter-frame fill can be flags or all '1's. when the interframe fill is all ?1?s, the number of '1's between the start and end flags does not need to be an integer number of bytes. in bit synchronous mode when inter-frame fill is flags, there may be only one flag between packets, or the flags may have a shared zero (011111101111110). in octet aligned mode, the inter-frame fill can only be flags, and there may be only one flag between packets. if packet processing is disabled, inter-frame fill filtering is not performed. packet abort detection searches for a packet abort sequence. between a packet start flag and a packet end flag, if an abort sequence is detected, the packet is marked with an abort indication, the aborted packet count is incremented, and all subsequent data is discarded until a packet start flag is detected. in bit synchronous mode, the abort sequence is seven consecutive ones. in octet aligned mode, the abort sequence is 7d7eh. if packet processing is disabled, packet abort detection is not performed.
ds3181/ds3182/ds3183/DS3184 150 of 389 destuffing removes the extra data inserted to prevent data from mimicking a flag or an abort sequence. in bit synchronous mode, bit destuffing is performed. bit destuffing consists of discarding any '0' that directly follows five contiguous '1's. in octet aligned mode, byte destuffing is performed. byte destuffing consists of detecting an escape sequence (7dh), discarding it and exclusive oring the next byte with 20h. in bit synchronous mode, after destuffing is completed, the serial bit stream is demultiplexed into an 8-bit parallel data stream and passed on to packet size checking. if there is less than eight bits in the last byte, an invalid packet flag is raised, the packet is tagged with an abort indication, and the packet size violation count is incremented. in octet aligned mode, after destuffing is completed, the 8-bit parallel data stream is passed on to packet size checking. if packet processing is disabled, destuffing is not performed. packet size checking checks each packet for a programmable maximum and programmable minimum size. as the packet data comes in, the total number of bytes is counted. if the packet length is below the minimum size limit, the packet is marked with an aborted indication, and the packet size violation count is incremented. if the packet length is above the maximum size limit, the packet is marked with an aborted indication, the packet size violation count is incremented, and all packet data is discarded until a packet start is received. the minimum and maximum lengths include the fcs bytes, and are determined after destuffing has occurred. if packet processing is disabled, packet size checking is not performed. fcs error monitoring checks the fcs and aborts errored packets. if a fcs error is detected, the fcs errored packet count is incremented and the packet is marked with an aborted indication. the fcs type (16-bit or 32-bit) is programmable. if fcs processing or packet processing is disabled, fcs byte extraction is not performed. fcs byte extraction discards the fcs bytes. if fcs extraction is enabled, the fcs bytes are extracted from the packet and discarded. if fcs extraction is disabled, the fcs bytes are stored in the receive fifo with the packet. if fcs processing or packet processing is disabled, fcs byte extraction is not performed. bit reordering changes the bit order of each byte. if bit reordering is enabled, the incoming 8-bit data stream dt[7:0] with dt[7] being the msb and dt[0] being the lsb is rearranged so that the msb is in dt[0] and the lsb is in dt[7] of the outgoing fifo data stream dt[7:0]. in bit synchronous mode, dt[7] is the first bit received. once all packet processing has been completed, the 8-bit parallel data stream is demultiplexed into a 32-bit parallel data stream and passed on to the receive fifo. 10.7.7 fifo 10.7.7.1 transmit fifo the transmit fifo block contains memory for 64 32-bit data words. the transmit fifo separates the transmit system interface timing from the transmit physical interface timing. the transmit fifo functions include filling the memory, tracking the memory fill level, maintaining the memory read and write pointers, and detecting memory overflow and underflow conditions. the number of data transfers that can occur after the transmit fifo "full" indication is deasserted is programmable. the transmit fifo port address used for selection and polling by the transmit system interface bus controller is programmable. in system loopback, the data from the transmit fifo is looped back to the receive fifo, and a fifo empty indication is passed on to the transmit cell/packet processor. in cell processing mode, all operations are cell based. the transmit fifo is considered empty when it does not contain any data. the transmit fifo is considered "almost empty" when it does not contain a cell. the transmit fifo is considered "almost full" when it does not have space available to store a programmable number of cells. the transmit fifo is considered full when it does not have space available for a complete cell. when the transmit fifo level drops below the ?almost full? indication, the tdxa[n] is asserted. the transmit fifo accepts cell transfers from the transmit system interface bus controller until it is full. if a start of cell is received while full, the cell is discarded and a fifo overflow condition is declared. once a fifo overflow condition is declared, the transmit fifo will discard cell data until a start of cell is received while the fifo has more space available than the "almost full" level. if the transmit fifo receives cell data other than a start of cell after a complete cell has been received, an invalid transfer is declared and all cell data is discarded until a start of cell is received. if a start of cell is received before a previous cell transfer has been completed, the current cell is discarded and a short transfer is declared. the new cell is processed normally. if the transmit cell processor attempts a read while the transmit fifo is empty, a fifo underflow condition is declared. once a fifo underflow condition is declared, the transmit fifo data will be discarded until a start of cell is received.
ds3181/ds3182/ds3183/DS3184 151 of 389 in packet processing mode, all operations are byte based. the transmit fifo is considered empty when its memory does not contain any data. the transmit fifo is considered "almost empty" when its memory does not contain a packet end and there is a programmable number of bytes or less stored in the memory. the transmit fifo is considered "almost full" when its memory has a programmable number of bytes or less available for storage. when the transmit fifo has more bytes available for storage than the ?almost full? level the tdxa[n] or tpxa pin will be asserted to signal to the pos device that it is ready to receive more packet data. the transmit fifo is considered full when it does not have any space available for storage. when the transmit fifo is full, the tdxa[n] pin will be deasserted. the transmit fifo accepts data from the transmit system interface bus controller until full. if a start of packet or short packet (32-bit data word with a start of packet and end of packet) is received while full, the data is discarded and a fifo overflow condition is declared. if any other packet data is received while full, the current packet being transferred is marked with an abort indication, and a fifo overflow condition is declared. once a fifo overflow condition is declared, the transmit fifo will discard data until a start of packet is received while the fifo has more space available than the "almost full" level. if a packet error (a transfer with terr and teop asserted) is received from the transmit system interface bus controller, an aborted transfer is declared, the data is stored in memory with a packet abort indication, and the transmit fifo will discard data until a start of packet is received. if an end of a packet has been received and the transmit fifo receives packet data other than a start of packet, an invalid transfer is declared, and all packet data is discarded until a start of packet is received. if a start of packet is received before a previous packet transfer has been completed (an end of packet was never received), the current packet being transferred is marked with an abort indication and a short transfer is declared. the new packet is processed normally. if the transmit packet processor attempts a read while the transmit fifo is empty, a fifo underflow condition is declared. once a fifo underflow condition is declared, the transmit fifo data will be discarded until a start of cell is received. 10.7.7.2 receive fifo the receive fifo block contains memory for 64 32-bit data words. the receive fifo separates the receive system interface timing from the receive physical interface timing. the receive fifo functions include filling the memory, tracking the memory fill level, maintaining the memory read and write pointers, and detecting memory overflow and underflow conditions. the receive fifo port address used for selection and polling by the receive system interface bus controller is programmable. in system loopback, data is looped back from the transmit fifo to the receive fifo. in cell processing mode, all operations are cell based. the receive fifo is considered empty unless it contains a cell. the receive fifo is considered "almost empty" when it contains a programmable number of cells or less. when the receive fifo level has more data available for transfer than the ?almost empty? level, the rdxa[n] pin is asserted. the receive fifo is considered "almost full" when it does not have space available to store a complete cell. the receive fifo is considered full when it does not have any space available. the receive fifo accepts cell data from the receive cell processor until full. if cell data is received while the fifo is full, the cell is discarded and a fifo overflow condition is declared. once a fifo overflow condition is declared, the receive fifo will discard cell data until a cell start is received while the fifo has space available to store a complete cell. if the receive system interface bus controller attempts a read while the fifo is empty, the read is ignored. in packet processing mode, all operations are 32-bit word based. the receive fifo is considered empty when it does not contain any data. the receive fifo is considered "almost empty" when its memory does not contain a packet end and there is a programmable number of words or less stored in the memory. when the receive fifo has more bytes available for transfer than the ?almost empty? level or has an end of packet, the rdxa[n] pin is asserted (pos-phy level 2). the receive fifo is considered "almost full" when its memory has a programmable number of words or less available for storage. the receive fifo is considered full when it does not have any space available for storage. the receive fifo accepts data from the receive packet processor until full. if a packet start or short packet is received while full, the data is discarded and a fifo overflow condition is declared. if any other packet data (packet end or middle) is received while full, the current packet being received is marked with an abort indication, and a memory overflow condition is declared. once a memory overflow condition is declared, the receive fifo will discard data until a packet start is received while the fifo has more space available than the "almost full" level. if the receive system interface bus controller attempts a read while the fifo is empty, the read is ignored. 10.7.8 system loopback there is a system loopback available in the atm/hdlc mapper. the loopback can be performed on a per-port basis. when a port is placed in system loopback, the data coming in from the system interface is looped back from
ds3181/ds3182/ds3183/DS3184 152 of 389 the transmit fifo to the receive fifo, a fifo empty indication is passed on to the transmit cell/packet processor, and all data coming from the receive cell/packet processor is discarded. the maximum throughput of a single port is limited to half of the receive system interface bandwidth in 32-bit mode. a loss of data may occur if the receive system interface clock (rsclk) has a frequency that is greater than one and one half times the transmit system interface clock (tsclk).
ds3181/ds3182/ds3183/DS3184 153 of 389 10.8 ds3/e3 plcp framer 10.8.1 general description the plcp framer demaps the atm cells from the ds3/e3 plcp data stream in the receive direction and maps atm cells into the ds3/e3 plcp data stream in the transmit direction. the receive direction extracts the plcp frame from the ds3/e3 data stream, performs frame processing, and outputs the cells with a beginning of cell indication via the payload interface. the transmit direction inputs the cells via the payload interface, generates the frame, and inserts the plcp frame into the ds3/e3 data stream. refer to figure 10-31 for the location of the plcp framer in the ds318x devices. figure 10-31. plcp framer functional diagram ds3/e3 tr ans mit liu ieee p1149.1 jtag test access port microprocessor in t e r f a c e hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 rec eiv e framer trail trac e buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx pac ket processor ds3/e3 rec eiv e liu tais tua 1 tx fra c/ plcp rx fra c/ pl cp cloc k rate adapter tx bert rx bert plb alb ua 1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.8.2 features  ds3 plcp frame atm cell extraction and insertion ? accepts a ds3 payload and performs ds3 plcp overhead termination and generation.  e3 plcp frame atm cell extraction and insertion ? accepts a g.751 e3 payload and performs e3 plcp overhead termination and generation.  generates and detects alarms and errors ? in the receive direction, plcp alarm conditions (oof, lof, cofa, and rai) and errors (framing, parity, and rei) are detected on the receive signal. in the transmit direction, alarm conditions and errors can be inserted into the transmit data stream.  receive overhead extraction port ? extracts all plcp overhead from the receive signal and outputs it on a serial interface (rpoh pin).  externally controlled transmit overhead insertion port ? can insert all plcp overhead into the transmit signal from a serial interface. overhead insertion is fully controlled via the serial overhead interface (tpoh, tpohen, tpohsof, tpohclk).  full duplex serial hdlc channel extraction/insertion ? an hdlc channel can be extracted from and/or inserted into the f1, m1, m2, or m1 and m2 bytes in the plcp data stream.  full duplex serial trail trace extraction/insertion ? a trail trace can be extracted from and/or inserted into the f1 byte in the plcp data stream.
ds3181/ds3182/ds3183/DS3184 154 of 389 10.8.3 transmit plcp frame processor the transmit plcp frame processor receives the atm cells from the atm/packet processor performs trailer generation, framing generation, error insertion, and overhead insertion. the bits in a byte are transmitted msb first, lsb last. when they are input serially, they are input in the order they are to be transmitted. the bits in a byte in an outgoing signal are numbered in the order they are transmitted, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7), and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. 10.8.4 receive plcp frame processor the receive plcp frame processor accepts the data stream from the ds3/e3 framer and extracts the entire ds3/e3 overhead and processes only the plcp frame data. the bits in a byte are received msb first, lsb last. when they are output serially, they are output in the order they are received. the bits in a byte in an incoming signal are numbered in the order they are received, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7), and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. some bits, bit groups, or bytes (data) are integrated. integration requires the data to have a new value for five consecutive occurrences before the new data value will be stored in the data register. integrated data may have an associated unstable indication. integrated data is considered unstable if for eight consecutive occurrences the received data value does not match the currently stored (integrated) data value or the previously received data value. 10.8.5 transmit ds3 plcp frame processor the ds3 plcp frame format is shown in figure 10-32 . a1 and a2 are the sub-frame alignment bytes that have a value of f6h and 28h respectively. p11 ? p0 are the path overhead identifier (poi) bytes that indicate the path overhead byte contained in the current sub-frame. z6 ? z1 are growth bytes reserved for future use. f1 is the path user channel byte allocated for user communications purposes (this byte is undefined in atm). b1 is the bit interleaved parity-8 (bip-8) byte used for plcp path error monitoring. g1 is the plcp path status byte (see figure 10-33 ) used for far-end path status and performance monitoring (bits 6 ? 8 are undefined in atm). m2 and m1 are the dqdb layer management information bytes used for dqdb layer management communications (these bytes are undefined in atm). c1 is the cycle/stuff counter byte used as for plcp superframe alignment and stuff indication. figure 10-32. ds3 plcp frame format
ds3181/ds3182/ds3183/DS3184 155 of 389 13 or 14 nibbles 12 subframes a1 a2 subframe (57 bytes) z5 z4 z3 z2 z1 f1 b1 g1 m2 m1 c1 z6 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 p11 p10 p9 p8 p7 p6 p5 p4 p3 p2 p1 p0 first cell second cell third cell fourth cell fifth cell sixth cell seventh cell eight cell ninth cell tenth cell eleventh cell twelfth cell trailer figure 10-33. ds3 plcp g1 byte format rei - remote error indicator rai - remote alarm indicator lss - link status signal rei rei rei rei rai lss lss lss msb 1 lsb 8 g1 10.8.5.1 transmit ds3 plcp trailer generation ds3 plcp trailer generation inserts the ds3 plcp frame trailer immediately following sub-frame 0 (poi equals 01h), and generates the c1 byte. the trailer size is determined by the ds3 plcp superframe counter, and the 8 khz reference clock. the ds3 plcp superframe counter is a free running counter that indicates the current frame of the three-frame superframe. in the first frame of the superframe, the trailer size is set to 13, and c1 is set to ffh. in the second frame of the superframe, the trailer size is set to 14, and c1 is set to 00h. in the third frame of the superframe, the trailer size is variable. the trailer size is controlled by the 8 khz reference clock. if the indicated trailer size is 13, c1 is set to 66h. if the indicated trailer size is 14, c1 is set to 99h, and the indicated number of nibbles (13 or 14) are added after sub-frame 0. the trailer nibbles are all set to 1100. 10.8.5.2 transmit ds3 plcp frame generation ds3 plcp frame generator receives the incoming plcp payload data stream, and overwrites all of the overhead byte locations.
ds3181/ds3182/ds3183/DS3184 156 of 389 the first two bytes of each sub-frame are overwritten with the frame alignment bytes a1 and a2, which have a value of f6h and 28h respectively. the third byte of sub-frame # is overwritten with poi byte # (p#). the value of p# is 00####0pb (0 = a logic zero, #### = the hexadecimal value of #, and p = the odd parity bit). the fourth byte of sub-frames #11 ? 6 are overwritten with the z6 ? z1 bytes from the corresponding registers. the fourth byte of sub-frame 5 is overwritten with the f1 byte from the corresponding register, the trail trace byte input from the transmit trail trace controller, or the hdlc overhead processor. the f1 byte source is programmable plcp.tcr . tf1c[1:0] (trail trace controller, hdlc, or register). the fourth byte of sub-frame 4 is overwritten with the calculated bip-8. the bip-8 is calculated over all of the path overhead bytes and cell bytes of the previous frame after all plcp processing (frame generation, error insertion, and overhead insertion) has been completed. the first four bits of the fourth byte of sub-frame 3 are overwritten with the g1 byte rei bits (g1[1:4]). the remote error indication (rei) bits can be generated automatically or inserted from the g1 register bits. the rei source is programmable (auto or register). if the rei bits are generated automatically, they are set to zero when the receive side b1 byte exactly matches the bip-8 calculated for the previous receives side frame. otherwise, the rei is set to a value of one to eight to indicate the number of parity errors (bip-8 errors) detected in the receive plcp frame (b1 byte). the fifth bit of the fourth byte of sub-frame 3 is overwritten with the g1 byte rai bit (g1[5]). the remote alarm indication (rai) bit is sourced from a register. the last three bits of the fourth byte of sub-frame 3 are overwritten with the g1 byte lss bits (g1[6:8]). the link status signal (lss) bits are sourced from a register. the three register bits are inserted in the sixth, seventh, and eighth bits of the g1 byte in each frame. the fourth byte of sub-frames 2 and 1 are overwritten with the m2 and m1 bytes respectively. each byte can be individually sourced from a register, or from the transmit hdlc controller. the m2 byte and m1 byte sources are each programmable (register or hdlc). if both bytes are programmed to be sourced from the transmit hdlc controller, they are concatenated as a single data link as opposed to two separate data links. the fourth byte of sub-frame 0 is overwritten with the c1 byte created during trailer generation. once all of the overhead bytes have been overwritten, the data stream is passed on to error insertion. 10.8.5.3 transmit ds3 plcp error insertion error insertion inserts various types of errors into the different overhead bytes. the types of errors that can be inserted are framing errors, bip-8 parity errors, and remote error indication (rei) errors. the type of framing error(s) inserted is programmable (frame bit error or framing byte error). a framing bit error is a single bit error in a frame alignment byte (a1 or a2) or poi byte (p#). a framing byte error is an error in all eight bits of a frame alignment byte (a1 or a2) or path overhead indicator (poi) byte (p#). framing error(s) can be inserted one error at a time, or in two consecutive bytes (a1 & a2 or p# & p#+1). the framing error insertion rate (single a1 or a2, single p#, a1 & a2, or p# & p#+1) is programmable. the type of bip-8 error(s) inserted is programmable (errored bip-8 bit or errored bip-8 byte). an errored bip-8 bit is inverting a single bit error in the b1 byte. an errored bip-8 byte is inverting all eight bits in the b1 byte. bip-8 error(s) can be inserted one error at a time, or continuously. the bip-8 error insertion rate (single or continuous) is programmable. the type of rei error(s) inserted is programmable (single rei error or eight rei errors). a single rei error is generated by setting the first four bits of the g1 byte to a value of 1h. eight rei errors are generated by setting the first four bits of the g1 byte to a value of 8h. rei error(s) can be inserted one error at a time, or continuously. the rei error insertion rate (single or continuous) is programmable. error insertion can be initiated by a register bit ( plcp.teir .tsei) or initiated by the manual error insertion input (tmei). each error type is individually enabled by a register bit. the error insertion initiation type (register or input) is programmable. once all error insertion has been performed, the data stream is passed on to overhead insertion.
ds3181/ds3182/ds3183/DS3184 157 of 389 10.8.5.4 transmit ds3 plcp overhead insertion overhead insertion can insert any (or all) of the path overhead bytes into the ds3 plcp frame. the overhead bytes z6 ? z1, f1, b1, g1, m1, m2, and c1 can be sourced from the transmit overhead interface (tpohclk, tpoh, tpohen, and tpohsof). the b1 and c1 bytes are sourced as error masks (modulo 2 addition of the input b1/c1 byte and the generated b1/c1 byte). the overhead insertion is fully controlled by the transmit overhead interface. if the transmit plcp overhead data enable signal (tpohen) is driven high, then the bit on the transmit plcp overhead signal (tpoh) is inserted into the output data stream. insertion of bits using the tpoh signal overwrites internal overhead insertion. 10.8.6 receive ds3 plcp frame processor the ds3 plcp frame format is shown in figure 10-32 . a1 and a2 are the sub-frame alignment bytes that have a value of f6h and 28h respectively. p11 ? p0 are the path overhead identifier (poi) bytes that indicate the path overhead byte contained in the current sub-frame. z6 ? z1 are growth bytes reserved for future use. f1 is the path user channel byte allocated for user communications purposes (this byte is undefined in atm). b1 is the bit interleaved parity-8 (bip-8) byte used for plcp path error monitoring. g1 is the plcp path status byte (see figure 10-33 ) used for far-end path status and performance monitoring (bits 6 ? 8 are undefined in atm). m1 and m2 are the dqdb layer management information bytes used for dqdb layer management communications (these bytes are undefined in atm). c1 is the cycle/stuff counter byte used as for plcp superframe alignment and stuff indication. 10.8.6.1 receive ds3 plcp framing ds3 plcp framing determines the ds3 plcp frame boundary. the frame boundary is found by identifying the frame alignment bytes (a1 & a2), and the path overhead indicator (poi) byte (p#). the framer is an off-line framer that updates the data path frame counters when an out of frame (oof) condition is present. the use of an off-line framer reduces the number of atm cells discarded during the framing process. the framer continually searches for two consecutive sets of alignment bytes (a1 and a2), and two sequential poi bytes (p#) are identified. the data path frame counters are updated if an oof condition is present. the maximum average reframe time is 17  s. 10.8.6.2 receive ds3 plcp nibble destuffing nibble destuffing discards the ds3 plcp frame trailer immediately following sub-frame 0 (poi equals 01h). the trailer size is determined by the ds3 plcp superframe counter, and the cycle counter byte (c1). the trailer is 13 nibbles in the first frame of the superframe (c1 equals ffh). the trailer is 14 nibbles in the second frame of the superframe (c1 equals 00h). the trailer length is variable in the third frame of the superframe. it is 14 nibbles if c1 equals 66h and 14 nibbles if c1 equals 99h. the superframe counter is updated immediately upon receiving an error free c1. in the third superframe, majority voting (5 of 8) is used to determine the trailer size. once the trailer size has been determined, the trailer nibbles are discarded. 10.8.6.3 receive ds3 plcp performance monitoring performance monitoring checks the ds3 plcp frame for errors and alarm conditions. the alarm conditions detected are oof, lof, cofa, and rai. all alarm conditions are defect conditions. the plcp framer does not integrate alarms for failure conditions. an out of frame (oof) condition is declared when two consecutive framing bytes (a1 and a2) or two consecutive poi bytes (p0 - p11) are erred. an oof condition is terminated when two sequential poi bytes and two consecutive framing words (a1 and a2) are error free or the ds3 plcp framer updates the data path frame counters. if the loss of frame (lof) integration counter is disabled, an lof condition is declared when an oof condition has been continuously present for 1 ms. if the lof integration counter is enabled, an lof condition is declared by the lof integration counter when the counter has been active for a total of 1 ms. the lof integration counter is active (increments count) when an oof condition is present, it is inactive (holds count) when an oof condition is absent, and it is reset when an oof condition is continuously absent for 1 ms. an lof condition is terminated when an oof condition is continuously absent for 1 ms. a change of frame alignment (cofa) is declared when the ds3 plcp framer updates the data path frame counters with a frame alignment that is different from the current data path frame alignment.
ds3181/ds3182/ds3183/DS3184 158 of 389 a remote alarm indication (rai) condition is declared when ten consecutive frames are received with the rai bit (fifth bit of g1) set to one. an rai condition is termi nated when ten consecutive frames are received with the rai bit set to zero. three types of errors are accumulated, framing errors, bip-8 errors and remote error indication (rei) errors. framing errors are determined by comparing a1, a2, and p# to their expected values. the type of framing errors accumulated is programmable (oof, bit, byte, or word). an oof error increments the count whenever an oof condition is first detected (up to 1 per 3 sub-frames). a bit error increments the count once for each bit in a1, each bit in a2, and each bit in p# that does not match its expected value (up to 24 per sub-frame). a byte error increments the count once for each a1 byte, a2 byte, and p# byte that does not match its expected value (up to 3 per sub-frame). a word error increments the count once for each frame alignment word (a1, a2, and p#) that does not match its expected value (up to 1 per sub-frame). the detection of poi byte (p#) framing errors is programmable (on or off). bip-8 errors are determined by calculating the bip-8 of the current frame (path overhead and cell bytes), and comparing the calculated bip-8 to the b1 byte in the next frame. the type of bip-8 errors accumulated is programmable (bit or block). a bit error increments the count once for each bit in the b1 byte that does not match the corresponding bit in the calculated bip-8 (up to 8 per frame). a block error increments the count if any bit in the b1 byte does not match the corresponding bit in the calculated bip-8 (up to 1 per frame). rei errors are determined by the four rei bits (first four bits of g1). the rei error count is incremented by the value of the four rei bits (up to 8 per frame). values of 9h - fh are treated as zero errors. 10.8.6.4 receive ds3 plcp overhead extraction overhead extraction extracts all of the ds3 plcp path overhead bytes from the ds3 plcp frame. all of the plcp path overhead (poh) bytes (z6 ? z1, f1, b1, g1, m2, m1, and c1) are output on the receive overhead bus (rpohclk, rpoh, and rpohsof). the b1 byte is output as an error indication (modulo 2 addition of the calculated bip-8 and the b1 byte). in addition, the z6 ? z1, f1, g1 (6:8), m2, and m1 bytes are integrated and stored in registers along with change indications. g1 (6:8) has an unstable indication as well. the f1 byte is sent to the receive trail trace buffer, and can also be sent to the receive hdlc controller. the m2 byte and/or m1 byte can be sent to the receive hdlc controller. the source of the data transferred to the receive hdlc controller is programmable (f1, m2, m1, or m2 & m1). if both the m2 and m1 byte are programmed to be the source for the receive hdlc controller, they are concatenated as a single data link as opposed to two separate data links. once all frame processing has been completed, the atm cells are passed on to the atm/packet processor with a start of cell indication. 10.8.7 transmit e3 plcp frame processor the e3 plcp frame format is shown in figure 10-34 . a1 and a2 are the sub-frame alignment bytes that have a value of f6h and 28h, respectively. p8?p0 are the path overhead identifier (poi) bytes that indicate the path overhead byte contained in the current sub-frame. z3?z1 are growth bytes reserved for future use. f1 is the path user channel byte allocated for user communications purposes (this byte is undefined in atm). b1 is the bit interleaved parity-8 (bip-8) byte used for plcp path error monitoring. g1 is the plcp path status byte (see figure 10-35 ) used for far-end path status and performance monitoring (bits 6?8 are undefined in atm). m2 and m1 are the dqdb layer management information bytes used for dqdb layer management communications (these bytes are undefined in atm). c1 is the cycle/stuff counter byte used as for stuff indication.
ds3181/ds3182/ds3183/DS3184 159 of 389 figure 10-34. e3 plcp frame format 9 rows 57 columns z3 z2 z1 f1 b1 g1 m2 m1 c1 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 a1 a2 p8 p7 p6 p5 p4 p3 p2 p1 p0 first cell second cell third cell fourth cell fifth cell sixth cell seventh cell eight cell ninth cell trailer 18 or 20 bytes figure 10-35. e3 plcp g1 byte format rei - remote error indicator rai - remote alarm indicator lss - link status signal rei rei rei rei rai lss lss lss msb 1 lsb 8 g1 10.8.7.1 transmit e3 plcp trailer generation e3 plcp trailer generation inserts the e3 plcp frame trailer immediately following sub-frame 0 (poi equals 01h), and generates the c1 byte. the trailer size is determined by the phase relationship of the g.751 e3 frame and plcp frame and by the transmit 8 khz reference clock. the trailer size is variable in all frames. the trailer size can be 17, 18, 19, 20, or 21 bytes. c1 is set to 3bh, 4fh, 75h, 9dh, or a7h respectively, and the indicated number of bytes (17 ? 21) are added after sub-frame 0. the trailer bytes are all set to 11001100. 10.8.7.2 transmit e3 plcp frame generation e3 plcp frame generation receives the incoming plcp payload data stream, and overwrites all of the overhead byte locations. the first two bytes of each sub-frame are overwritten with the frame alignment bytes a1 and a2, which have a value of f6h and 28h respectively. the third byte of sub-frame # is overwritten with poi byte # (p#). the value of p# is 00####0pb (0 = a logic zero, #### = the hexadecimal value of #, and p = the odd parity bit). the fourth byte of sub-frames #8 ? 6 are overwritten with the z3 ? z1 bytes from the corresponding registers. the fourth byte of sub-frame 5 is overwritten with the f1 byte from the corresponding register or the trail trace byte input from the transmit trail trace controller. the f1 byte from the corresponding register, the trail trace byte input
ds3181/ds3182/ds3183/DS3184 160 of 389 from the transmit trail trace controller, or the hdlc overhead processor interface). the f1 byte source is programmable ( plcp.tcr . tf1c[1:0]) (trail trace data link, hdlc, or register). the fourth byte of sub-frame 4 is overwritten with the b1 byte, which is a bip-8, calculated over all of the path overhead bytes and cell bytes of the previous frame after all plcp processing (frame generation, error insertion, and overhead insertion) has been completed. the first four bits of the fourth byte of sub-frame 3 are overwritten with the g1 byte rei bits (g1[1:4]). the remote error indication (rei) bits can be generated automatically or inserted from the g1 register bits. the rei source is programmable (auto or register). if the rei bits are generated automatically, they are set to zero when the receive side b1 byte exactly matches the bip-8 calculated for the previous receives side frame. otherwise, the rei is set to a value of one to eight to indicate the number of parity errors (bip-8 errors) detected in the receive plcp frame (b1 byte). the fifth bits of the fourth byte of sub-frame 3 is overwritten with the g1 byte rai bit (g1[5]). the remote alarm indication (rai) bit is sourced from a register. the last three bits of the fourth byte of sub-frame 3 are overwritten with the g1 byte lss bits (g1[6:8]). the link status signal (lss) bits are sourced from a register. the three register bits are inserted in the sixth, seventh, and eighth bits of the g1 byte in each frame. the fourth byte of sub-frames 2 and 1 are overwritten with the m2 and m1 bytes respectively. each byte can be individually sourced from a register, or from the transmit hdlc overhead processor. the m2 byte and m1 byte sources are each programmable (register or hdlc). if both bytes are programmed to be sourced from the transmit hdlc controller, they are concatenated as a single data link as opposed to two separate data links. the fourth byte of sub-frame 0 is overwritten with the c1 byte created during trailer generation. once all of the overhead bytes have been overwritten, the data stream is passed on to error insertion. 10.8.7.3 transmit e3 plcp error insertion error insertion inserts various types of errors into the different overhead bytes. the types of errors that can be inserted are framing errors, bip-8 parity errors, and remote error indication (rei) errors. the type of framing error(s) inserted is programmable (frame bit error or framing byte error). a framing bit error is a single bit error in a frame alignment byte (a1 or a2) or poi byte (p#). a framing byte error is an error in all eight bits of a frame alignment byte (a1 or a2) or path overhead indicator (poi) byte (p#). framing error(s) can be inserted one error at a time, or in two consecutive bytes (a1 & a2 or p# & p#+1). the framing error insertion rate (single a1 or a2, single p#, a1 & a2, or p# & p#+1) is programmable. the type of bip-8 error(s) inserted is programmable (errored bip-8 bit or errored bip-8 byte). an errored bip-8 bit is inverting a single bit error in the b1 byte. an errored bip-8 byte is inverting all eight bits in the b1 byte. bip-8 error(s) can be inserted one error at a time, or continuously. the bip-8 error insertion rate (single or continuous) is programmable. the type of rei error(s) inserted is programmable (single rei error or eight rei errors). a single rei error is generated by setting the first four bits of the g1 byte to a value of 1h. eight rei errors are generated by setting the first four bits of the g1 byte to a value of 8h. rei error(s) can be inserted one error at a time, or continuously. the rei error insertion rate (single or continuous) is programmable. error insertion can be initiated by a register bit ( plcp.teir .tsei) or initiated by the manual error insertion input (tmei). each error type is individually enabled by a register bit. the error insertion initiation type (register or input) is programmable. once all error insertion has been performed, the data stream is passed on to overhead insertion. 10.8.7.4 transmit e3 plcp overhead insertion overhead insertion can insert any (or all) of the path overhead bytes into the e3 plcp frame. the overhead bytes z3 ? z1, f1, b1, g1, m1, m2, and c1 can be sourced from the transmit overhead interface (tpohclk, tpoh, tpohen, and tpohsof). the b1 and c1 bytes are sourced as error masks (modulo 2 addition of the input b1/c1 byte and the generated b1/c1 byte). the overhead insertion is fully controlled by the transmit overhead interface. if the transmit plcp overhead data enable signal (tpohen) is driven high, then the bit on the transmit plcp overhead signal (tpoh) is inserted into the output data stream. insertion of bits using the tpoh signal overwrites internal overhead insertion.
ds3181/ds3182/ds3183/DS3184 161 of 389 10.8.8 receive e3 plcp frame processor the receive e3 plcp frame processor performs e3 plcp framing, byte destuffing, performance monitoring and overhead extraction. the e3 plcp frame format is shown in figure 10-34 . a1 and a2 are the sub-frame alignment bytes that have a value of f6h and 28h respectively. p8 ? p0 are the path overhead identifier (poi) bytes that indicate the path overhead byte contained in the current sub-frame. z3 ? z1 are growth bytes reserved for future use. f1 is the path user channel byte allocated for user communications purposes (this byte is undefined in atm). b1 is the bit interleaved parity-8 (bip-8) byte used for plcp path error monitoring. g1 is the plcp path status byte (see figure 10-35 ) used for far-end path status and performance monitoring (bits 6 ? 8 are undefined in atm). m1 and m2 are the dqdb layer management information bytes used for dqdb layer management communications (these bytes are undefined in atm). c1 is the cycle/stuff counter byte used as for plcp stuff indication. 10.8.8.1 receive e3 plcp framing e3 plcp framing determines the e3 plcp frame boundary. the frame boundary is found by identifying the frame alignment bytes (a1 & a2), and the path overhead indicator (poi) byte (p#). the framer is an off-line framer that updates the data path frame counters when an out of frame (oof) condition is present. the use of an off-line framer reduces the number of atm cells discarded during the framing process. the continually searches for two consecutive sets of alignment bytes (a1 and a2), and two sequential poi bytes (p#) are identified. the data path frame counters are updated if an oof condition is present). the maximum average reframe time is 23  s. 10.8.8.2 receive e3 plcp byte destuffing byte destuffing discards the e3 plcp frame trailer immediately following sub-frame 0 (poi equals 01h). the trailer size is determined by the cycle counter byte (c1). the trailer is 17 to 21 bytes. it is 17 bytes if c1 equals 3bh; 18 bytes if c1 equals 4fh; 19 bytes if c1 equals 75h; 20 bytes if c1 equals 9dh; and 21 bytes if c1 equals a7h. the c1 codes provide error correction capability, and the c1 byte is corrected if required, and then used to determine the trailer size. once the trailer size has been determined, the trailer bytes are discarded. 10.8.8.3 receive e3 plcp performance monitoring performance monitoring checks the e3 plcp frame for erro rs and alarm conditions. t he alarm conditi ons detected are oof, lof, cofa, and rai. all alarm conditions are defect conditions. the feac controller does not integrate alarms for failure conditions. an out of frame (oof) condition is declared when an error is detected in both bytes in a framing word (a1 and a2) or two consecutive poi bytes (p0 - p11) are erred. an oof condition is terminated when two sequential poi bytes and two consecutive framing words (a1 and a2) are error free or the e3 plcp framer updates the data path frame counters. if the loss of frame (lof) integration counter is disabled, an lof condition is declared when an oof condition has been continuously present for 1 ms. if the lof integration counter is enabled, an lof condition is declared by the lof integration counter when the counter has been active for a total of 1 ms. the lof integration counter is active (increments count) when an oof condition is present, it is inactive (holds count) when an oof condition is absent, and it is reset when an oof condition is continuously absent for 1 ms. an lof condition is terminated when an oof condition is continuously absent for 1 ms. a change of frame alignment (cofa) is declared when the e3 plcp framer updates the data path frame counters with a frame alignment that is different from the current data path frame alignment. a remote alarm indication (rai) condition is declared when ten consecutive frames are received with the rai bit (fifth bit of g1) set to one. an rai condition is termi nated when ten consecutive frames are received with the rai bit set to zero. three types of errors are accumulated: framing errors, bip-8 errors and remote error indication (rei) errors. framing errors are determined by comparing a1, a2, and p# to their expected values. the type of framing errors accumulated is programmable (oof, bit, byte, or word). an oof error increments the count whenever an oof condition is first detected (up to 1 per 3 sub-frames). a bit error increments the count once for each bit in a1, each bit in a2, and each bit in p# that does not match its expected value (up to 24 per sub-frame). a byte error increments the count once for each a1 byte, a2 byte, and p# byte that does not match its expected value (up to 3 per sub-frame). a word error increments the count once for each frame alignment word (a1, a2, and p#) that does
ds3181/ds3182/ds3183/DS3184 162 of 389 not match its expected value (up to 1 per sub-frame). the detection of poi byte (p#) framing errors is programmable (on or off). bip-8 errors are determined by calculating the bip-8 of the current frame (path overhead and cell bytes), and comparing the calculated bip-8 to the b1 byte in the next frame. the type of bip-8 errors accumulated is programmable (bit or block). a bit error increments the count once for each bit in the b1 byte that does not match the corresponding bit in the calculated bip-8 (up to 8 per frame). a block error increments the count if any bit in the b1 byte does not match the corresponding bit in the calculated bip-8 (up to 1 per frame). rei errors are determined by the four rei bits (first four bits of g1). the count is incremented by the value of the four rei bits (up to 8 per frame). values of 9h - fh are treated as zero errors. 10.8.8.4 receive e3 plcp overhead extraction overhead extraction extracts all of the e3 plcp path overhead bytes from the e3 plcp frame. all of the plcp path overhead (poh) bytes (z3 ? z1, f1, b1, g1, m1, m2, and c1) are output on the receive overhead bus (rpohclk, rpoh, and rpohsof). the b1 byte is output as an error indication (modulo 2 addition of the calculated bip-8 and the b1 byte). in addition, the z3 ? z1, f1, g1 (6:8), m1, and m2 bytes are integrated and stored in registers along with change indications. g1 (6:8) has an unstable indication as well. the f1 byte is sent to the receive trail trace buffer, and can also be sent to the receive hdlc controller. the m2 byte and/or m1 byte can be sent to the receive hdlc controller. the source of the data transferred to the receive hdlc controller is programmable (f1, m2, m1, or m2 & m1). if both the m2 and m1 bytes are programmed to be the source for the receive hdlc controller, they are concatenated as a single data link as opposed to two separate data links. once all frame processing has been completed, the atm cells are passed on to the atm/packet processor with a start of cell indication.
ds3181/ds3182/ds3183/DS3184 163 of 389 10.9 fractional payload controller 10.9.1 general description the fractional payload controller uses a fraction of the ds3/e3 payload for atm cell or hdlc packets. the unused ds3/e3 payload is considered fractional overhead and can be used as a proprietary data link. the allocation given to the fractional payload is programmable controlled using internal counters or controlled externally. the fractional overhead data can optionally be programmed to transmit all 0?s, all 1?s, a 1010 pattern, or insert data from an external source. the fractional payload controller demaps fractional payload and overhead data from the ds3/e3 payload in the receive direction and maps fractional payload and overhead data into the ds3/e3 payload in the transmit direction. the receive direction extracts the fractional payload and fractional overhead data bits from the receive ds3/e3 payload, performs fractional payload/overhead data demultiplexing, sends the fractional payload to the atm/packet processor, and sends the fractional overhead data to an external interface. the transmit direction accepts the fractional overhead from an internal register or the external interface and fractional payload data from the atm/packet processor, performs fractional overhead/payload data multiplexing, and inserts the fractional overhead and payload data into the transmit ds3/e3 payload. refer to figure 10-36 for the location of the fractional payload controller in the ds318x devices. figure 10-36. fractional payload c ontroller detailed block diagram ds3/e3 tr ans mit liu ieee p1149.1 jtag test access port microprocessor in t e r f a c e hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 rec eiv e framer trail trac e buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx pac ket processor ds3/e3 rec eiv e liu tais tua 1 tx fra c/ plcp rx fra c/ pl cp cloc k rate adapter tx bert rx bert plb alb ua 1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.9.2 features  programmable payload allocation ? the payload data and fractional overhead allocation can be programmed via registers.  externally controlled payload allocation ? the payload data and fractional overhead allocation can be controlled by an external source via pins.  fractional overhead extraction and insertion ? extracts all fractional overhead from the ds3/e3 payload and sends it to an external serial interface. inserts all fractional overhead from a serial interface and into the transmit ds3/e3 payload. optionally, the transmit fractional overhead can be set to insert all 0?s, all 1?s, or a 1010 pattern.
ds3181/ds3182/ds3183/DS3184 164 of 389 10.9.3 transmit fractional interface the transmit fractional interface receives the payload data stream from the atm/packet processor and inserts a fractional overhead stream. the incoming fractional overhead stream consists of fracti onal overhead (tfohn), input fractional overhead enable (tfohenin), and output fractional overhead enable (tfohenon). tfohn, tfohenon and tfohenin are typically referenced to tclkin (but also could be referenced to the tlclkn, tclkon/tgclkn, rclkon or rlclkn clock pins). if external control is enabled, tfohenin marks the fractional overhead periods, and tfohenon is held low. if internal control is enabled, tfohenon marks the fractional overhead periods, and tfohenin is ignored. fractional overhead control is programmable (internal or external). the fractional overhead source is programmable (all 0's, all 1's, a 10 pattern, or tfoh). see the frac.tcr register definition. see section 8.3.3 above for specific timing relationships between these pins. 10.9.4 transmit fractional controller the transmit fractional controller generates the transmit fractional overhead enable output (tfohenon) used in internal control mode to insert fractional overhead. the outgoing transmit data stream to the ds3/e3 framer is divided into frames. each frame is composed of data groups that have a programmable size (1 ? 8191 bits). each data group is divided into two sections. the first section (section a) has a programmable size (0 ? 8191 bits). the second section (section b) contains the remaining bits ( g ? a bits). see figure 10-37 . the section that contains fractional overhead is programmable (section a or section b by setting the frac.tcr .tsass register bit). tfohenon is high during the fractional overhead section of the data group, and low during the payload section of the data group. tfohenon is also low during line overhead/stuff periods. 10.9.5 receive fractional interface the receive fractional interface receives the ds3/e3 payload from the ds3/e3 framer, and performs fractional overhead extraction on the payload. the receive fractional overhead pins are the input fractional overhead enable (rfohenin), and the output fractional overhead enable (rfohenon). rfohenin is sampled on the rising edge of rclkon, typically, or it can be referenced to the rlclkn pin. rfohenon is updated on the rising edge of rclkon (or alternatively the rlclkn pin). if external control is enabled, the receive fractional overhead enable input (rfohenin) marks the fractional overhead bits contained in the ds3/e3 payload. rfohenin is high while a fractional overhead period is available on rsern. rfohenin is low during payload data or line overhead/stuff periods. if internal control is enabled, the receive fractional overhead enable output (rfohenon) marks the fractional overhead bits in the received ds3/e3 payload. rfohenon is high during a fractional overhead bit period on rsern. rfohenon is low during a payload data or line overhead/stuff period. see section 8.3.3 above for specific timing relationships between these pins. 10.9.6 receive fractional controller the receive fractional controller generates the receive fractional overhead enable output (rfohenon) used in internal control mode to extract fractional overhead to the rfohn pin. the ds3/e3 payload is divided into frames composed of data groups that have a programmable size (1 ? 8191 bits). each data group is divided into two sections. the first section (section a) has a programmable size ( a , 0 ? 8191 bits). the second section (section b) contains the remaining bits ( g ? a bits). see figure 10-37 . the section that contains fractional overhead is programmable (section a or section b by setting the frac.rcr . rsass register bit). rfohenon is high during the fractional overhead section of the data group, and low during the payload section of the data group. rfohenon is also low during line overhead/stuff periods. the first bit of a frame is the first bit of a data group. if a frame does not contain an integer number of data groups ( f / g is not an integer), the last data group in the frame will be a short data group. the last bit of the short data group will be the last data period before the start of frame period.
ds3181/ds3182/ds3183/DS3184 165 of 389 figure 10-37. data group format section a ( a bits) section b ( g-a bits) data group ( g bits) figure 10-38. frame format frame ( f bits) data group data group data group data group data group data group ? ? ?
ds3181/ds3182/ds3183/DS3184 166 of 389 10.10 ds3/e3 framer / formatter 10.10.1 general description the receive ds3/e3 framer receives a unipolar ds3/e3 signal, determines frame alignment and extracts the ds3/e3 overhead in the receive direction. the transmit ds3/e3 formatter receives a ds3/e3 payload, generates framing, inserts ds3/e3 overhead, and outputs a unipolar ds3/e3 signal in the transmit direction. the receive ds3/e3 framer receives a ds3/e3 signal, determines the frame alignment, extracts the ds3/e3 overhead, and outputs the payload with frame and overhead the transmit ds3/e3 formatter receives a ds3/e3 payload from the atm/packet processor, generates a ds3/e3 frame, optionally inserts ds3/e3 overhead, and transmits the ds3/e3 signal. refer to figure 10-39 for the location of the ds3/e3 framer/formatter blocks in the ds318x devices. figure 10-39. framer detailed block diagram ds3/e3 tr ans mit liu ieee p1149.1 jtag test access port microprocessor in t e r f a c e hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 rec eiv e framer trail trac e buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx pac ket processor ds3/e3 rec eiv e liu tais tua 1 tx fra c/ plcp rx fra c/ pl cp cloc k rate adapter tx bert rx bert plb alb ua 1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.10.2 features 10.10.2.1 transmit formatter  programmable ds3 or e3 formatter ? accepts a ds3 (m23 or c-bit) or e3 (g.751 or g.832) signal and performs ds3/e3 overhead generation.  arbitrary framing format support ? generates a signal with an arbitrary framing format. the line overhead/stuff periods are added into the data stream using an overhead mask signal.  generates alarms and errors ? ds3 alarm conditions (ais, rdi, and idle) and errors (framing, parity, and febe), or e3 alarm conditions (ais and rdi/rai) and errors (framing, parity, and rei) can be inserted into the outgoing data stream.  externally controlled serial ds3/e3 overhead insertion port ? can insert all ds3 or e3 overhead via a serial interface. ds3/e3 overhead insertion is fully controlled via the serial overhead interface.  hdlc overhead insertion ? an hdlc channel can be inserted into the ds3 or e3 data stream.  feac insertion ? a feac channel can be inserted into the ds3 or e3 data stream.  trail trace insertion ? inputs and inserts the g.832 e3 tr byte.
ds3181/ds3182/ds3183/DS3184 167 of 389 10.10.2.2 receive framer  programmable ds3 or e3 framer ? accepts a ds3 (m23 or c-bit) or e3 (g.751 or g.832) signal and performs ds3/e3 overhead termination.  arbitrary framing format support ? accepts a signal with an arbitrary framing format. the line overhead/stuff periods are removed from the data stream using an overhead mask signal.  detects alarms and errors ? detects ds3 alarm conditions (sef, oomf, oof, lof, cofa, ais, aic, rdi, and idle) and errors (framing, parity, and febe), or e3 alarm conditions (oof, lof, cofa, ais, and rdi/rai) and errors (framing, parity, and rei).  serial ds3/e3 overhead extraction port ? extracts all ds3 or e3 overhead and outputs it on a serial interface.  hdlc overhead extraction ? an hdlc channel can be extracted from the ds3 or e3 data stream.  feac extraction ? a feac channel can be extracted from the ds3 or e3 data stream.  trail trace extraction ? extracts and outputs the g.832 e3 tr byte. 10.10.3 transmit formatter the transmit formatter receives a ds3, e3 or cc52 clear-channel data stream and performs framing generation, error insertion, overhead insertion, and ais/idle generation for c-bit ds3, m23 ds3, g.751 e3, g.832 e3, or cc52 clear-channel framing protocols. in clear-channel mode, only ais/idle generation is performed. the bits in a byte are transmitted msb first, lsb last. when they are input serially, they are input in the order they are to be transmitted. the bits in a byte in an outgoing signal are numbered in the order they are transmitted, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7), and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. after all frame formatting is completed, the frame processor inserts a ds3/e3 (or clear channel) data stream into a line data stream (ohm modes only). the line data stream is an upper level signal with a ds3, e3, or clear-channel data stream embedded within the upper level frame. for example, if a ds3 signal has two line overhead/stuff periods occur between the beginning of one frame and the beginning of the next frame, there will be 4762 clock periods between the beginnings of the two frames (4760 for the ds3 data periods plus two for the line overhead/stuff periods). 10.10.4 receive framer the receive framer receives the incoming ds3, e3, or clear-channel line/tributary data stream, performs appropriate framing, terminates and extracts the associated overhead bytes, and extracts the ds3, e3, or clear- channel payload data stream (ohm modes only). the line data stream is an upper-level signal with a ds3, e3, or clear-channel data stream embedded within the upper level frame. for example, if a ds3 signal has two line overhead/stuff periods occur between the beginning of one frame and the beginning of the next frame, there will be 4762 clock periods between the beginnings of the two frames (4760 for the ds3 data periods plus two for the line overhead/stuff periods). the receive framer processes a c-bit format ds3, m23 format ds3, g.751 format e3, g.832 format e3, or clear- channel data stream, performing framing, performance monitoring, overhead extraction, and generates downstream ais, if necessary. in clear-channel mode, only performance monitoring and downstream ais generation are performed. the bits in a byte are received msb first, lsb last. when they are output serially, they are output msb first, lsb last. the bits in a byte in an incoming signal are numbered in the order they are received, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7), and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. some bits, bit groups, or bytes (data) are integrated before being stored in a register. integration requires the data to have the same new data value for five consecutive occurrences before the new data value will be stored in the data register. unless stated otherwise, integrated data may have an associated unstable indication. integrated data is considered unstable if the received data value does not match the currently stored (integrated) data value or the previously received data value for eight consecutive occurrences. the unstable condition is terminated when the same value is received for five consecutive occurrences.
ds3181/ds3182/ds3183/DS3184 168 of 389 10.10.4.1.1 receive ds3 framing ds3 framing determines the ds3 frame boundary. in order to identify the ds3 frame boundary, first the sub-frame boundary must be found. the sub-frame boundary is found by identifying the sub-frame alignment bits f x1 , f x2 , f x3 , and f x4 , which have a value of one, zero, zero, and one respectively. see figure 10-40 . once the sub-frame boundary is found, the multiframe frame boundary can be found. the multiframe boundary is found by identifying the multiframe alignment bits m 1 , m 2 , and m 3 , which have a value of zero, one, and zero respectively. the ds3 framer is an off-line framer that only updates the data path frame counters when either an out of frame (oof) or an out of multiframe (oomf) condition is present. the use of an off-line framer reduces the average time required to reframe, and reduces data loss caused by burst error. the ds3 framer has a maximum average reframe time (mart) of approximately 1.0 ms. figure 10-40. ds3 frame format 680 bits 7 sub- frames x 1 x 2 p 1 p 2 m 1 m 2 m 3 f 11 f 21 f 31 f 41 f 51 f 61 f 71 f 12 f 22 f 32 f 42 f 52 f 62 f 72 f 13 f 23 f 33 f 43 f 53 f 63 f 73 f 14 f 24 f 34 f 44 f 54 f 64 f 74 c 11 c 21 c 31 c 41 c 51 c 61 c 71 c 12 c 22 c 32 c 42 c 52 c 62 c 72 c 13 c 23 c 33 c 43 c 53 c 63 c 73 the sub-frame framer continually searches four adjacent bit positions for a sub-frame boundary. a sub-frame alignment bit (f-bit) checker checks each bit position. all four-bit positions must fail before any other bit positions are checked for a sub-frame boundary. there are 170 possible bit positions that must be checked, and four positions are checked simultaneously. therefore up to 43 checks may be needed to identify the sub-frame boundary. the sub-frame framer enables the multiframe frame once it has identified a sub-frame boundary. refer to figure 10-41 for the sub-frame framer state diagram.
ds3181/ds3182/ds3183/DS3184 169 of 389 figure 10-41. ds3 subframe framer state diagram sync load verify all 4 bit positions failed 2 f-bits loaded 3 b i t p o s i t i o n s f a i l e d o r 1 6 f - b i t s v e r i f i e d a l l 4 b i t p o s i t i o n s f a i l e d the multiframe framer checks for a multiframe boundary. when the multiframe framer identifies a multiframe boundary, it updates the data path frame counters if either an oof or oomf condition is present. the multiframe framer waits until a sub-frame boundary has been identified. then, each bit position is checked for the multiframe boundary. the multiframe boundary is found by identifying the three multiframe alignment bits (m-bits). since there are seven multiframe bits and three bits are required to identify the multiframe boundary, up to 9 checks may be needed to find the multiframe boundary. once the multiframe boundary is identified, it is checked in each subsequent frame. the data path frame counters are updated if the three multiframe alignment bits are error free, and an oof or oomf condition exists. if the multiframe framer checks more than 15 multiframe bit (x-bits, p-bits, and m-bits) positions without identifying the multiframe boundary, the multiframe framer times out, and forces the sub-frame framer back into the load state. see figure 10-42 for the multiframe framer state diagram. 10.10.4.1.2 receive ds3 performance monitoring performance monitoring che cks the ds3 fr ame for alarm conditions and errors. the alarm c onditions detected are oomf, oof, sef, lof, cofa, los, ais, idle, rua1, and rdi. the errors accumulated are framing, p-bit parity, c-bit parity (c-bit format only), and far-end block error (febe) (c-bit format only) errors. an out of multiframe (oomf) condition is declared when a multiframe alignment bit (m-bit) error has been detected in two or more of the last four consecutive ds3 frames, or when a manual - is requested. an oomf condition is terminated when no m-bit errors have been detected in the last four consecutive ds3 frames, or when the ds3 framer updates the data path frame counters. see figure 10-42 for the multiframe framer state diagram.
ds3181/ds3182/ds3183/DS3184 170 of 389 figure 10-42. ds3 multiframe framer state diagram sync load verify timeout 2 multiframe loaded m - b i t s i d e n t i f i e d m - b i t e r r o r a n d t i m e o u t m - b i t e r r o r if multiframe alignment oof is disabled, an out of frame (oof) condition is declared when three or more out of the last 16 consecutive sub-frame alignment bits (f-bits) have been errored, or a manual resynchronization is requested. if multiframe alignment oof is enabled, an oof condition is declared when three or more out of the last 16 consecutive f-bits have been errored, when an oomf condition is declared, or when a manual resynchronization is requested. if multiframe alignment oof is disabled, an oof condition is terminated when none of the last 16 consecutive f-bits has been errored, or when the ds3 framer updates the data path frame counters. if multiframe alignment oof is enabled, an oof condition is terminated when an oomf condition is not active and none of the last 16 consecutive f-bits has been errored, or when the ds3 framer updates the data path frame counters. multiframe alignment oof is programmable (on or off). a severely errored frame (sef) condition is declared when three or more out of the last 16 consecutive f-bits have been errored, or when a manual resynchronization is requested. an sef condition is terminated when an oof condition is absent. a loss of frame (lof) condition is declared by the lof integration counter when it has been active for a total of t ms. the lof integration counter is active (increments count) when an oof condition is present, it is inactive (holds count) when an oof condition is absent, and it is reset when an oof condition is absent for t continuous ms. t is programmable (0, 1, 2, or 3). an lof condition is terminated when an oof condition is absent for t continuous ms. a change of frame alignment (cofa) is declared when the ds3 framer updates the data path frame counters with a frame alignment that is different from the current data path ds3 frame alignment. a loss of signal (los) condition is declared when the b3zs encoder is active, and it declares a los condition. a los condition is terminated when the b3zs encoder is inactive, or it terminates a los condition. an alarm indication signal (ais) is a ds3 sign al with valid f-bits and m-bits. the x-bits (x 1 and x 2 ) are set to one, the p-bits (p 1 and p 2 ) are set to zero, all c-bits (c xy ) are set to zero, and the payload bits are set to a 1010 pattern starting with a one immediately after each ds3 overhead bit. an ais signal is present when a ds3 frame is received with valid f-bits and m-bits, both x-bits set to one, both p-bits set to zero, all c-bits set to zero, and all but seven or fewer payload data bits matching the ds3 overhead aligned 1010 pattern. an ais signal is absent when a ds3 frame is received that does not meet the aforementioned criteria for an ais signal being present. the ais integration counter declares an ais condition when it has been active for a total of 10 to 17 ds3 frames. the ais
ds3181/ds3182/ds3183/DS3184 171 of 389 integration counter is active (increments count) when an ais signal is present, it is inactive (holds count) when an ais signal is absent, and it is reset when an ais signal is absent for 10 to 17 consecutive ds3 frames. an ais condition is terminated when an ais signal is absent for 10 to 17 consecutive ds3 frames. a receive unframed all 1?s (rua1) condition is declared if in each of 4 consecutive 2047 bit windows, five or less zeros are detected and an oof condition is continuously present. a rua1 condition is terminated if in each of 4 consecutive 2047-bit windows, six or more zeros are detected or an oof condition is continuously absent. an idle signal (idle) is a ds3 signal with valid f-bits, m-bits, and p-bits (p 1 and p 2 ). the x-bits (x 1 and x 2 ) are set to one, c 31 , c 32 , and c 33 are set to zero, and the payload bits are set to a 1100 pattern starting with 11 immediately after each overhead bit. in c-bit mode, an idle signal is present when a ds3 frame is received with valid f-bits, m- bits, and p-bits, both x-bits set to one, c 31 , c 32 , and c 33 set to zero, and all but seven or fewer payload data bits matching the overhead aligned 1100 pattern. in m23 mode, an idle signal is present when a ds3 frame is received with valid f-bits, m-bits, and p-bits, both x-bits set to one, and all but seven or fewer payload data bits matching the t3 overhead aligned 1100 pattern. an idle signal is absent when a ds3 frame is received that does not meet aforementioned criteria for an idle signal being present. the idle integration counter declares an idle condition when it has been active for a total of 10 to 17 ds3 frames. the idle integration counter is active (increments count) when an idle signal is present, it is inactive (holds count) when an idle signal is absent, and it is reset when an idle signal is absent for 10 to 17 consecutive ds3 frames. an idle condition is terminated when an idle signal is absent for 10 to 17 consecutive ds3 frames. a remote defect indication (rdi) condition (also called a far-end sef/ais defect condition) is declared when four consecutive ds3 frames are received with the x-bits (x 1 and x 2 ) set to zero. an rdi condition is terminated when four consecutive ds3 frames are received with the x-bits set to one. a ds3 framing format mismatch (ds3fm) condition is declared when the ds3 format programmed (m23, c-bit) does not match the incoming ds3 signal-framing format. a ds3fm condition is terminated when the incoming ds3 signal-framing format is the same format as programmed. framing errors are determined by comparing f-bits and m-bits to their expected values. the type of framing errors accumulated is programmable (oof, f & m, f, or m). an oof error increments the count whenever oof condition is first detected. an f & m error increments the count once for each f-bit or m-bit that does not match its expected value (up to 31 per ds3 frame). an f error increments the count once for each f-bit that does not match its expected value (up to 28 per ds3 frame). an m error increments the count once for each m-bit that does not match its expected value (up to 3 per ds3 frame). p-bit parity errors are determined by calculating the parity of the current ds3 frame (payload bits only), and comparing the calculated parity to the p-bits (p 1 and p 2 ) in the next ds3 frame. if the calculated parity does not match p 1 or p 2 , a single p-bit parity error is declared. c-bit parity errors (c-bit format only) are determined by calculating the parity of the current ds3 frame (payload bits only), and comparing the calculated parity to the c-bits in sub-frame three (c 31 , c 32 , and c 33 ) in the next ds3 frame. if the calculated parity does not match c 31 , c 32 , or c 33 , a single c-bit parity error is declared. febe errors (c-bit format only) are determined by the c-bits in sub-frame four (c 41 , c 42 , and c 43 ). a value of 111 indicates no error and any other value indicates an error. 10.10.5 c-bit ds3 framer/formatter 10.10.5.1 transmit c-bit ds3 frame processor the c-bit ds3 frame format is shown in figure 10-40 .
ds3181/ds3182/ds3183/DS3184 172 of 389 figure 10-40. ds3 frame format 680 bits 7 sub- frames x 1 x 2 p 1 p 2 m 1 m 2 m 3 f 11 f 21 f 31 f 41 f 51 f 61 f 71 f 12 f 22 f 32 f 42 f 52 f 62 f 72 f 13 f 23 f 33 f 43 f 53 f 63 f 73 f 14 f 24 f 34 f 44 f 54 f 64 f 74 c 11 c 21 c 31 c 41 c 51 c 61 c 71 c 12 c 22 c 32 c 42 c 52 c 62 c 72 c 13 c 23 c 33 c 43 c 53 c 63 c 73 table 10-34 shows the function of each overhead bit in the ds3 frame table 10-34. c-bit ds3 frame overhead bit definitions bit definition x 1 , x 2 remote defect indication (rdi) p 1 , p 2 parity bits m 1 , m 2 , and m 3 multiframe alignment bits f xy sub-frame alignment bits c 11 application identification channel (aic) c 12 reserved c 13 far-end alarm and control (feac) signal c 21 , c 22 , and c 23 unused c 31 , c 32 , and c 33 c-bit parity bits c 41 , c 42 , and c 43 far-end block error (febe) bits c 51 , c 52 , and c 53 path maintenance data link (or hdlc) bits c 61 , c 62 , and c 63 unused c 71 , c 72 , and c 73 unused x 1 and x 2 are the remote defect indication (rdi) bits (also referred to as the far-end sef/ais bits). p 1 and p 2 are the parity bits used for line error monitoring. m 1 , m 2 , and m 3 are the multiframe alignment bits. f xy are the sub- frame alignment bits. c 11 is the application identification channel (aic). c 12 is reserved for future network use, and has a value of one. c 13 is the far-end alarm and control (feac) signal. c 21 , c 22 , and c 23 are unused, and have a
ds3181/ds3182/ds3183/DS3184 173 of 389 value of one. c 31 , c 32 , and c 33 are the c-bit parity bits used for path error monitoring. c 41 , c 42 , and c 43 are the far- end block error (febe) bits used for remote path error monitoring. c 51 , c 52 , and c 53 are the path maintenance data link (or hdlc) bits. c 61 , c 62 , and c 63 are unused, and have a value of one. c 71 , c 72 , and c 73 are unused, and have a value of one. the x-bit, p-bit, m-bit, c-bit, and f-bit positions are overhead bits, and the other bit positions in the ds3 frame are payload bits. 10.10.5.2 transmit c-bit ds3 frame generation c-bit ds3 frame generation receives the incoming payload data stream, and overwrites the entire overhead bit locations. the multiframe alignment bits (m 1 , m 2 , and m 3 ) are overwritten with the values zero, one, and zero (010) respectively. the sub-frame alignment bits (f x1 , f x2 , f x3 , and f x4 ) are overwritten with the values one, zero, zero, and one (1001) respectively. the x-bits (x 1 and x 2 ) are both overwritten with the remote defect indicator (rdi). the rdi source is programmable (automatic, 1, or 0). if the t3.tcr .ardid is one then the t3.tcr .trdi register bit controls this bit. if the rdi is generated automatically ( t3.tcr .ardid=0), the x-bits are set to zero when one or more of the indicated alarm conditions is present, and set to one when all of the indicated alarm conditions are absent. automatically setting rdi on los, sef, lof, or ais is individually programmable (on or off). the p-bits (p 1 and p 2 ) are both overwritten with the calculated payload parity from the previous ds3 frame. the payload parity is calculated by performing modulo 2 addition of all of the payload bits after all frame processing has been completed. p-bit generation is programmable (on or off) via the t3.tcr .pbge register bit. the p-bits will be generated if either p-bit generation is enabled or frame generation is enabled. the bits c 11 , c 12 , c 21 , c 22 , c 23 , c 61 , c 62 , c 63 , c 71 , c 72 , and c 73 are all overwritten with a one. the bit c 13 is overwritten with the far-end alarm and control (feac) data input from the transmit feac controller. the bits c 31 , c 32 , and c 33 are all overwritten with the calculated payload parity from the previous ds3 frame. the bits c 41 , c 42 , and c 43 are all overwritten with the far-end block error (febe) bit. the febe bit can be generated automatically or inserted from a register bit. the febe bit source is programmable (automatic or register). if the t3.tcr.afebed register bit is one then the t3.tcr.tfebe register bit controls this bit. if the febe bit is generated automatically, it is zero when at least one c-bit parity error has been detected during the previous frame. the bits c 51 , c 52 , and c 53 are overwritten with the path maintenance data link input from the hdlc controller. once all of the ds3 overhead bits have been overwritten, the data stream is passed on to error insertion. if frame generation is disabled, the incoming ds3 signal is passed on to error insertion. frame generation is programmable (on or off). note: p-bit generation may still be performed even if frame generation is disabled. 10.10.5.3 transmit c-bit ds3 error insertion error insertion inserts various types of errors into the different ds3 overhead bits. the types of errors that can be inserted are framing errors, p-bit parity errors, c-bit parity errors, and far-end block error (febe) errors. the framing error insertion mode is programmable (f-bit, m-bit, sef, or oomf). an f-bit error is a single sub- frame alignment bit (f xy ) error. an m-bit error is a single multiframe alignment bit (m 1 , m 2 , or m 3 ) error. an sef error is an error in all the sub-frame alignment bits in a sub-frame (f x1 , f x2 , f x3 , and f x4 ). an oomf error is a single multiframe alignment bit (m 1 , m 2 , or m 3 ) error in two consecutive ds3 frames. a p-bit parity error is generated by is inverting the value of the p-bits (p 1 and p 2 ) in a single ds3 frame. p-bit parity error(s) can be inserted one error at a time, or continuously. the p-bit parity error insertion mode (single or continuous) is programmable. a c-bit parity error is generated by is inverting the value of the c 31 , c 32 , and c 33 bits in a single ds3 frame. c-bit parity error(s) can be inserted one error at a time, or continuously. the c-bit parity error insertion mode (single or continuous) is programmable. a febe error is generated by forcing the c 41 , c 42 , and c 43 bits in a single multiframe to zero. febe error(s) can be inserted one error at a time, or continuously. the febe error insertion rate (single or continuous) is programmable.
ds3181/ds3182/ds3183/DS3184 174 of 389 each error type (framing, p-bit parity, c-bit parity, or febe) has a separate enable. continuous error insertion mode inserts errors at every opportunity. single error insertion mode inserts an error at the next opportunity when requested. the framing multi-error modes (sef or oomf) insert the indicated number of error(s) at the next opportunities when requested; i.e., a single request will cause multiple errors to be inserted. the requests can be initiated by a register bit (tsei) or by the manual error insertion input (tmei). the error insertion initiation type (register or input) is programmable. the insertion of each particular error type is individually enabled. once all error insertion has been performed, the data stream is passed on to overhead insertion. 10.10.5.4 transmit c-bit ds3 overhead insertion overhead insertion can insert any (or all) of the ds3 overhead bits into the ds3 frame. the ds3 overhead bits x 1 , x 2 , p 1 , p 2 , m x , f xy , and c xy can be sourced from the transmit overhead interface (tohclkn, tohn, tohenn, and tohsofn). the p-bits (p 1 and p 2 ) and c 31 , c 32 , and c 33 bits are received as an error mask (modulo 2 addition of the input bit and the internally generated bit). the ds3 overhead insertion is fully controlled by the transmit overhead interface. if the transmit overhead data enable signal (tohenn) is driven high, then the bit on the transmit overhead signal (tohn) is inserted into the output data stream. insertion of bits using the tohn signal overwrites internal overhead insertion. 10.10.5.5 transmit c-bit ds3 ais/idle generation c-bit ds3 ais/idle generation overwrites the data stream with ais or an idle signal. if transmit idle is enabled, the data stream payload is forced to an 1100 pattern with two ones immediately following each ds3 overhead bit. m 1 , m 2 , and m 3 bits are overwritten with the values zero, one, and zero (010) respectively. f x1 , f x2 , f x3 , and f x4 bits are overwritten with the values one, zero, zero, and one (1001) respectively. x 1 and x 2 are overwritten with 11. and, p 1 , p 2, c 31 , c 32 , and c 33 are overwritten with the calculated payload parity from the previous output ds3 frame. if transmit ais is enabled, the data stream payload is forced to a 1010 pattern with a one immediately following each ds3 overhead bit. m 1 , m 2 , and m 3 bits are overwritten with the values zero, one, and zero (010) respectively. f x1 , f x2 , f x3 , and f x4 bits are overwritten with the values one, zero, zero, and one (1001) respectively. x 1 and x 2 are overwritten with 11. p 1 , p 2, c 31 , c 32 , and c 33 are overwritten with the calculated payload parity from the previous output ds3 frame. and, c x1 , c x2 , and c x3 (x  3) are overwritten with 000. ais will overwrite a transmit idle signal. 10.10.5.5.1 receive c-bit ds3 frame format the ds3 frame format is shown in figure 10-40 . x 1 and x 2 are the remote defect indication (rdi) bits (also referred to as the far-end sef/ais bits). p 1 and p 2 are the parity bits used for line error monitoring. m 1 , m 2 , and m 3 are the multiframe alignment bits that define the multiframe boundary. f xy are the sub-frame alignment bits that define the sub-frame boundary. note: both the m-bits and f-bits define the ds3 frame boundary. c 11 is the application identification channel (aic). c 12 is reserved for future network use, and has a value of one. c 13 is the far-end alarm and control (feac) signal. c 21 , c 22 , and c 23 are unused, and have a value of one. c 31 , c 32 , and c 33 are the c-bit parity bits used for path error monitoring. c 41 , c 42 , and c 43 are the far-end block error (febe) bits used for remote path error monitoring. c 51 , c 52 , and c 53 are the path maintenance data link (or hdlc) bits. c 61 , c 62 , and c 63 are unused, and have a value of one. c 71 , c 72 , and c 73 are unused, and have a value of one. 10.10.5.5.2 receive c-bit ds3 overhead extraction overhead extraction extracts all of the ds3 overhead bits from the c-bit ds3 frame. all of the ds3 overhead bits x 1 , x 2 , p 1 , p 2 , m x , f xy , and c xy are output on the receive overhead interface (roh, rohsof, and rohclk). the p 1 , p 2 , c 31 , c 32 , and c 33 bits are output as an error indication (modulo 2 addition of the calculated parity and the bit). in addition, the application identification channel (aic), which is stored in a register bit, is determined from the c 11 bit. the aic is set to one (c-bit format) if the c 11 bit is set to one in 31 consecutive multiframes. the aic is set to zero (m23 format) if the c 11 bit is set to zero in four of the last 31 consecutive multiframes. note: the stored aic bit must not change when a los, oof, or ais condition is present. the c 13 bit is sent over to the receive feac controller. the c 51 , c 52 , and c 53 bits are sent to the receive hdlc overhead controller. 10.10.6 m23 ds3 framer/formatter 10.10.6.1 transmit m23 ds3 frame processor the m23 ds3 frame format is shown in figure 10-40 . table 10-35 defines the framing bits for m23 ds3. x 1 and x 2 are the remote defect indication (rdi) bits (also referred to as the far-end sef/ais bits). p 1 and p 2 are the parity bits used for line error monitoring. m 1 , m 2 , and m 3 are the multiframe alignment bits. f xy are the sub-frame
ds3181/ds3182/ds3183/DS3184 175 of 389 alignment bits. c 11 is the application identification channel (aic). c x1 , c x2 , and c x3 are the stuff control bits for tributary #x. the x-bit, p-bit, m-bit, c-bit, and f-bit positions are overhead bits, and the other bit positions in the ds3 frame are payload bits. table 10-35. m23 ds3 frame overhead bit definitions bit definition x 1 , x 2 remote defect indication (rdi) p 1 , p 2 parity bits m 1 , m 2 , and m 3 multiframe alignment bits f xy sub-frame alignment bits c 11 application identification channel (aic) c x1 , c x2 , and c x3 stuff control bits for tributary #x 10.10.6.2 transmit m23 ds3 frame generation m23 ds3 frame generation receives the incoming payload data stream, and overwrites the entire ds3 overhead bit locations. the multiframe alignment bits (m 1 , m 2 , and m 3 ) are overwritten with the values zero, one, and zero (010) respectively. the sub-frame alignment bits (f x1 , f x2 , f x3 , and f x4 ) are overwritten with the values one, zero, zero, and one (1001) respectively. the x-bits (x 1 and x 2 ) are both overwritten with the remote defect indicator (rdi). the rdi source is programmable (automatic, 1, or 0). if the t3.tcr.ardid is one then the t3.tcr.trdi register bit controls this bit. if the rdi is generated automatically (t3.tcr.ardid=0), the x-bits are set to zero when one or more of the indicated alarm conditions is present, and set to one when all of the indicated alarm conditions are absent. automatically setting rdi on los, sef, lof, or ais is individually programmable (on or off). the p-bits (p 1 and p 2 ) are both overwritten with the calculated payload parity from the previous ds3 frame. the payload parity is calculated by performing modulo 2 addition of all of the payload bits after all frame processing has been completed. p-bit generation is programmable (on or off) . the p-bits will be generated if either p-bit generation is enabled or frame generation is enabled. if c-bit generation is enabled (t3.tcr.cbgd), the bit c 11 is overwritten with an alternating one zero pattern, and all of the other c-bits (c xy ) are overwritten with zeros. if c-bit generati on is disabled, then all of the c-bit timeslots (c xy ) will be treated as payload data, and passed through. c-bit generation is programmable (on or off). note: overhead insertion may still overwrite the c-bit time slots even if c-bit generation is disabled. once all of the ds3 overhead bits have been overwritten, the data stream is passed on to error insertion. if frame generation is disabled, the incoming ds3 signal is passed on directly to error insertion. frame generation is programmable (on or off). note: p-bit generation may still be performed even if frame generation is disabled. 10.10.6.3 transmit m23 ds3 error insertion error insertion inserts various types of errors into the different ds3 overhead bits. the types of errors that can be inserted are framing errors and p-bit parity errors. the framing error insertion mode is programmable (f-bit, m-bit, sef, or oomf). an f-bit error is a single sub- frame alignment bit (f xy ) error. an m-bit error is a single multiframe alignment bit (m 1 , m 2 , or m 3 ) error. an sef error is an error in all the sub-frame alignment bits in a sub-frame (f x1 , f x2 , f x3 , and f x4 ). an oomf error is a single multiframe alignment bit (m 1 , m 2 , or m 3 ) error in each of two consecutive ds3 frames.
ds3181/ds3182/ds3183/DS3184 176 of 389 a p-bit parity error is generated by is inverting the value of the p-bits (p 1 and p 2 ) in a single ds3 frame. p-bit parity error(s) can be inserted one error at a time, or continuously. the p-bit parity error insertion mode (single or continuous) is programmable. each error type (framing or p-bit parity) has a separate enable. continuous error insertion mode inserts errors at every opportunity. single error insertion mode inserts an error at the next opportunity when requested. the framing multi-error insertion modes (sef or oomf) insert the indicated number of error(s) at the next opportunities when requested; i.e., a single request will cause multiple errors to be inserts. the requests can be initiated by a register bit (tsei) or by the manual error insertion input (tmei). the error insertion request source (register or input) is programmable. the insertion of each particular error type is individually enabled. once all error insertion has been performed, the data stream is passed on to overhead insertion. 10.10.6.4 transmit m23 ds3 overhead insertion overhead insertion can insert any (or all) of the ds3 overhead bits into the ds3 frame. the ds3 overhead bits x 1 , x 2 , p 1 , p 2 , m x , f xy , and c xy can be sourced from the transmit overhead interface (tohclk, toh, tohen, and tohsof). the p-bits (p 1 and p 2 ) are received as an error mask (modulo 2 addition of the input bit and the internally generated bit). the ds3 overhead insertion is fully controlled by the transmit overhead interface. if the transmit overhead data enable signal (tohen) is driven high, then the bit on the transmit overhead signal (toh) is inserted into the output data stream. insertion of bits using the toh signal overwrites internal overhead insertion. 10.10.6.5 transmit m23 ds3 ais/idle generation m23 ds3 ais/idle generation overwrites the data stream with ais or an idle signal. if transmit idle is enabled, the data stream payload is forced to an 1100 pattern with two ones immediately following each ds3 overhead bit. m 1 , m 2 , and m 3 bits are overwritten with the values zero, one, and zero (010) respectively. f x1 , f x2 , f x3 , and f x4 bits are overwritten with the values one, zero, zero, and one (1001) respectively. x 1 and x 2 are overwritten with 11.. p 1 and p 2 are overwritten with the calculated payload parity from the previous output ds3 frame. and, c 31 , c 32 , and c 33 are overwritten with 000. if transmit ais is enabled, the data stream payload is forced to a 1010 pattern with a one immediately following each ds3 overhead bit. m 1 , m 2 , and m 3 bits are overwritten with the values zero, one, and zero (010) respectively. f x1 , f x2 , f x3 , and f x4 bits are overwritten with the values one, zero, zero, and one (1001) respectively. x 1 and x 2 are overwritten with 11. p 1 and p 2 are overwritten with the calculated payload parity from the previous ds3 frame. and, c x1 , c x2 , and c x3 are overwritten with 000. ais will overwrite a transmit idle signal. 10.10.6.5.1 receive m23 ds3 frame format the ds3 frame format is shown in figure 10-40 . the x 1 and x 2 are the remote defect indication (rdi) bits (also referred to as the far-end sef/ais bits). p 1 and p 2 are the parity bits used for line error monitoring. m 1 , m 2 , and m 3 are the multiframe alignment bits that define the multiframe boundary. f xy are the sub-frame alignment bits that define the sub-frame boundary. note: both the m-bits and f-bits define the ds3 frame boundary. c 11 is the application identification channel (aic). c x1 , c x2 , and c x3 are the stuff control bits for tributary #x. 10.10.6.5.2 receive m23 ds3 overhead extraction overhead extraction extracts all of the ds3 overhead bits from the m23 ds3 frame. all of the ds3 overhead bits x 1 , x 2 , p 1 , p 2 , m x , f xy , and c xy are output on the receive overhead interface (roh, rohsof, and rohclk). the p 1 and p 2 bits are output as an error indication (modulo 2 addition of the calculated parity and the bit). in addition, the application identification channel (aic) is extracted from the c 11 bit and stored in a register. the aic is set to one (c-bit format) if the c 11 bit is set to one in 31 consecutive multiframes. the aic is set to zero (m23 format) if the c 11 bit is set to zero in four of the last 31 consecutive multiframes. note: the stored aic bit must not change when a los, oof, or ais condition is present. 10.10.6.5.3 receive ds3 downstream ais generation downstream ds3 ais (all ?1?s) can be automatically generated on an oof, los, or ais condition or manually inserted. if automatic downstream ais is enabled, downstream ais is inserted when an los or ais condition is declared, or no earlier than 2.25 ms and no later than 2.75 ms after an oof condition is declared. automatic downstream ais is programmable (on or off). if manual downstream ais insertion is enabled, downstream ais is inserted. manual downstream ais insertion is programmable (on or off). downstream ais is removed when all oof, los, and ais conditions are terminated and manual downstream ais insertion is disabled.
ds3181/ds3182/ds3183/DS3184 177 of 389 10.10.7 g.751 e3 framer/formatter 10.10.7.1 transmit g.751 e3 frame processor the g.751 e3 frame format is shown in figure 10-43 . fas is the frame alignment signal. a is the alarm indication bit used to indicate the presence of an alarm to the remo te terminal equipment. n is the national use bit reserved for national use. figure 10-43. g.751 e3 frame format fas 1524 bit payload 384 bits 4 rows a n 10.10.7.2 transmit g.751 e3 frame generation g.751 e3 frame generation receives the incoming payload data stream, and overwrites the entire e3 overhead bit locations. the first 10 bits of the frame are overwritten with the frame alignment signal (fas), which has a value of 1111010000b. the 11th bit of the frame is overwritten with the alarm indication (a) bit. the a bit can be generated automatically, sourced from the transmit feac controller, set to one, or set to zero. the a bit source is programmable (automatic, feac, 1, or 0). if the a bit is generated automatically, it is set to one when one or more of the indicated alarm conditions is present, and set to zero when all of the indicated alarm conditions are absent. automatically setting rdi on los, lof, or ais is individually programmable (on or off). the twelfth bit of the frame is overwritten with the national use (n) bit. the n bit can be sourced from the transmit feac controller, sourced from the transmit hdlc overhead controller, set to one, or set to zero. the n bit source is programmable (feac, hdlc, 1, or 0). note: the feac controller will source one bit per frame regardless of whether the a bit only, the n bit only, or both are programmed to be sourced from the feac controller. once all of the e3 overhead bits have been overwritten, the data stream is passed on to error insertion. if frame generation is disabled, the incoming e3 signal is passed on directly to error insertion. frame generation is programmable (on or off). 10.10.7.3 transmit g.751 e3 error insertion error insertion inserts framing errors into the frame alignment signal (fas). the type of error(s) inserted into the fas is programmable (errored fas bit or errored fas). an errored fas bit is a single bit error in the fas. an errored fas is an error in all ten bits of the fas (a value of 0000101111b is inserted in the fas). framing error(s) can be inserted one error at a time, or in four consecutive frames. the framing error insertion number (single or four) is programmable. single error insertion mode inserts an error at the next opportunity when requested. the multi-error insertion mode inserts the indicated number of errors at the next opportunities when requested. that is, a single request will cause multiple errors to be inserted. the requests can be initiated by a register bit (tsei) or by the manual error insertion input (tmei). the error insertion initiation type (register or input) is programmable. the insertion of each particular error type is individually enabled. once all error insertion has been performed, the data stream is passed on to overhead insertion.
ds3181/ds3182/ds3183/DS3184 178 of 389 10.10.7.4 transmit g.751 e3 overhead insertion overhead insertion can insert any (or all) of the e3 overhead bits into the e3 frame. the fas, a bit, and n bit can be sourced from the transmit overhead interface (tohclk, toh, tohen, and tohsof). the e3 overhead insertion is fully controlled by the transmit overhead interface. if the transmit overhead data enable signal (tohen) is driven high, then the bit on the transmit overhead signal (toh) is inserted into the output data stream. insertion of bits using the toh signal overwrites internal overhead insertion. 10.10.7.5 transmit g.751 e3 ais generation g.751 e3 ais generation overwrites the data stream with ais. if transmit ais is enabled, the data stream (payload and e3 overhead) is forced to all ones. 10.10.7.6 receive g.751 e3 frame processor the g.751 e3 frame format is shown in figure 10-43 . fas is the frame alignment signal. a is the alarm indication bit used to indicate the presence of an alarm to the remo te terminal equipment. n is the national use bit reserved for national use. 10.10.7.6.1 receive g.751 e3 framing g.751 e3 framing determines the g.751 e3 frame boundary. the frame boundary is found by identifying the frame alignment signal (fas), which has a value of 1111010000b. the framer is an off-line framer that updates the data path frame counters when an out of frame (oof) condition has been detected. the use of an off-line framer reduces the average time required to reframe, and reduces data loss caused by burst error. the g.751 e3 framer checks each bit positi on for the fas. the frame boundary is set once the fas is identified. sinc e, the fas check is performed one bit at a time, up to 1536 checks may be needed to find the frame boundary. the data path frame counters are updated if an error free fas is received for two additional frames, and an oof condition is present, or if a manual frame re-synchronization has been initiated. 10.10.7.6.2 receive g.751 e3 performance monitoring performance monitoring checks the e3 frame for alarm c onditions. the alarm conditi ons detected are oof, lof, cofa, los, ais, rua1, and rai. an out of frame (oof) condition is declared when four consecutive frame alignment signals (fas) contain one or more errors or at the next fas check when a manual reframe is requested. an oof condition is terminated when three consecutive fass are error-free or the g.751 e3 framer updates the data path frame counters. a loss of frame (lof) condition is declared by the lof integration counter when it has been active for a total of t ms. the lof integration counter is active (increments count) when an oof condition is present, it is inactive (holds count) when an oof condition is absent, and it is reset when an oof condition is absent for t continuous ms. t is programmable (0, 1, 2, or 3). an lof condition is terminated when an oof condition is absent for t continuous ms. a change of frame alignment (cofa) is declared when the g.751 e3 framer updates the data path frame counters with a frame alignment that is different from the current data path frame alignment. a loss of signal (los) condition is declared when the hdb3 encoder is active, and it declares a los condition. a los condition is terminated when the hdb3 encoder is inactive, or it terminates a los condition. an alarm indication signal (ais) condition is declared when 4 or less zeros are detected in each of two consecutive frame periods. an ais condition is terminated when 5 or more zeros are detected in each of two consecutive frame periods. a receive unframed all 1?s (rua1) condition is declared if in each of 4 consecutive 2047 bit windows, five or less zeros are detected and an oof condition is continuously present. a rua1 condition is terminated if in each of 4 consecutive 2047-bit windows, six or more zeros are detected or an oof condition is continuously absent. a remote alarm indication (rai) condition is declared when four consecutive frames are received with the a bit (first bit after the fas) set to one. an rai condition is terminated when four consecutive frames are received with the a bit set to zero. only framing errors are accumulated. framing errors are determined by comparing the fas to its expected value. the type of framing errors accumulated is programmable (oof, bit, or word). an oof error increments the count whenever an oof condition is first detected. a bit error increments the count once for each bit in the fas that does
ds3181/ds3182/ds3183/DS3184 179 of 389 not match its expected value (up to 10 per frame. a word error increments the count once for each fas that does not match its expected value (up to 1 per frame). the receive alarm indication (rai) signal is high when one or more of the indicated alarm conditions is present, and low when all of the indicated alarm conditions are absent. setting the receive alarm indication on los, oof, lof, or ais is individually programmable (on or off). 10.10.7.6.3 receive g.751 e3 overhead extraction overhead extraction extracts all of the e3 overhead bits from the g.751 e3 frame. the fas, a bit, and n bit are output on the receive overhead interface (roh, rohsof, and rohclk). in addition, the a bit is integrated and stored in a register along with a change indication, and can be output over the receive feac controller. the n bit is integrated and stored in a register along with a change indication, is sent to the receive hdlc overhead controller, and can also be sent to the receive feac controller. the bit sent to the receive feac controller is programmable (a or n). 10.10.7.6.4 receive g.751 downstream ais generation downstream g.751 e3 ais can be automatically generated on an oof, los, or ais condition or manually inserted. if automatic downstream ais is enabled, downstream ais is inserted when a los, oof, or ais condition is declared. automatic downstream ais is programmable (on or off). if manual downstream ais insertion is enabled, downstream ais is inserted. manual downstream ais insertion is programmable (on or off). downstream ais is removed when all oof, los, and ais conditions are terminated and manual downstream ais insertion is disabled. rpdt will be forced to all ones during downstream ais. 10.10.8 g.832 e3 framer/formatter 10.10.8.1 transmit g.832 e3 frame processor the g.832 e3 frame format is shown in figure 10-44 . figure 10-44. g.832 e3 frame format fa1 em tr ma nr gc fa2 530 byte payload 59 columns 9 rows
ds3181/ds3182/ds3183/DS3184 180 of 389 figure 10-45. ma byte format rdi - remote defect indicator rei - remote error indicator sl - signal label mi - multi-frame indicator tm - timing marker rdi rei sl sl sl mi mi tm msb 1 lsb 8 table 10-36 shows the function of each overhead bit in the ds3 frame. table 10-36. g.832 e3 frame overhead bit definitions byte definition fa1, fa2 frame alignment bytes em error monitoring byte tr trail trace byte ma maintenance and adaptation byte nr network operator byte gc general-purpose communication channel byte fa1 and fa2 are the frame alignment bytes. em is the error monitoring byte used for path error monitoring. tr is the trail trace byte used for end-to-end connectivity verification. ma is the maintenance and adaptation byte used for far-end path status and performance monitoring. nr is the network operator byte allocated for network operator maintenance purposes. gc is the general-purpose communications channel byte allocated for user communications purposes. 10.10.8.2 transmit g.832 e3 frame generation g.832 e3 frame generation receives the incoming payload data stream, and overwrites all of the e3 overhead byte locations. the first two bytes of the first row in the frame are overwritten with the frame alignment bytes fa1 and fa2, which have a value of f6h and 28h respectively. the first byte in the second row of the frame is overwritten with the em byte which is a bip-8 calculated over all of the bytes of the previous frame after all frame processing (frame generation, error insertion, overhead insertion, and ais generation) has been performed. the first byte in the third row of the frame is overwritten with the tr byte which is input from the transmit trail trace controller. the first byte in the fourth row of the frame is overwritten with the ma byte (see figure 10-45 ), which consists of the rdi bit, rei bit, payload type, multiframe indicator, and timing source indicator. the rdi (remote defect indicator) bit can be generated automatically, set to one, or set to zero. the rdi source is programmable (automatic, 1, or 0). if the rdi is generated automatically, it is set to one when one or more of the indicated alarm conditions are detected on the receive side, and set to zero when all of the indicated alarm conditions are absent. automatically setting rdi on los, lof, or ais is individually programmable (on or off). the rei (remote error indicator) bit can be generated automatically or inserted from a register bit ( e3g832.tcr .tfebe). the rei source is programmable (automatic or register bit). if rei is generated
ds3181/ds3182/ds3183/DS3184 181 of 389 automatically, it is set to one when at least one parity error has been detected on the receive side during the previous frame. the payload type is sourced from a register. the three register bits are inserted in the third, fourth, and fifth bits of the ma byte in each frame. the multiframe indicator and timing marker bits can be directly inserted from a 3-bit register or generated from a 4- bit register. the multiframe indicator and timing marker insertion type is programmable (direct or generated). when the multiframe indicator and timing marker bits are directly inserted, the three register bits are inserted in the last three bits of the ma byte in each frame. when the multiframe indicator and timing marker bits are generated, the four timing source indicator bits are transferred in a four-f rame multiframe, msb first. the multiframe indicator bits (sixth and seventh bits of the ma byte) identify the phase of the multiframe (00, 01, 10, or 11), and the timing marker bit (eighth bit of the ma byte) contains the corre sponding timing source indicator bit (tmabr register bits tti3, tti2, tti1, or tti0 respectively). note: the initial phase of the multiframe is arbitrarily chosen. the first byte in the fifth row of the frame is overwritten with the nr byte which can be sourced from a register, from the transmit feac controller, or from the transmit hdlc controller. the nr byte source is programmable (register, feac, or hdlc). note: the hdlc controller will source eight bits per frame period regardless of whether the nr byte only, gc byte only, or both are programmed to be sourced from the hdlc controller. the first byte in the sixth row of the frame is overwritten with the gc byte which can be sourced from a register or from the transmit hdlc controller. the gc byte source is programmable (register or hdlc). once all of the e3 overhead bytes have been overwritten, the data stream is passed on to error insertion. if frame generation is disabled, the incoming e3 signal is passed on directly to error insertion. frame generation is programmable (on or off). 10.10.8.3 transmit g.832 e3 error insertion error insertion inserts various types of errors into the different e3 overhead bytes. the types of errors that can be inserted are framing errors, bip-8 parity errors, and remote error indication (rei) errors. the type of framing error(s) inserted is programmable (errored frame alignment bit or errored frame alignment word). a frame alignment bit error is a single bit error in the frame alignment word (fa1 or fa2). a frame alignment word error is an error in all 16 bits of the frame alignment word (the values 09h and d7h are inserted in the fa1 and fa2 bytes, respectively). framing error(s) can be inserted one error at a time, or four consecutive frames. the framing error insertion mode (single or four) is programmable. the type of bip-8 error(s) inserted is programmable (errored bip-8 bit or errored bip-8 byte). an errored bip-8 bit is inverting a single bit error in the em byte. an errored bip-8 byte is inverting all eight bits in the em byte. bip-8 error(s) can be inserted one error at a time, or continuously. the bip-8 error insertion mode (single or continuous) is programmable. an rei error is generated by forcing the second bit of the ma byte to a one. rei error(s) can be inserted one error at a time, or continuously. the rei error insertion mode (single or continuous) is programmable. each error type (framing, bip-8, or rei) has a separate enable. continuous error insertion mode inserts errors at every opportunity. single error insertion mode inserts an error at the next opportunity when requested. the framing multi-error insertion mode inserts the indicated number of errors at the next opportunities when requested. i.e., a single request will cause multiple errors to be inserted. the requests can be initiated by a register bit (tsei) or by the manual error insertion input (tmei). the error insertion request source (register or input) is programmable. the insertion of each particular error type is individually enabled. once all error insertion has been performed, the data stream is passed on to overhead insertion. 10.10.8.4 transmit g.832 e3 overhead insertion overhead insertion can insert any (or all) of the e3 overhead bytes into the e3 frame. the e3 overhead bytes fa1, fa2, em, tr, ma, nr, and gc can be sourced from the transmit overhead interface (tohclk, toh, tohen, and tohsof). the em byte is sourced as an error mask (modulo 2 addition of the input em byte and the generated em byte). the e3 overhead insertion is fully controlled by the transmit overhead interface. if the transmit overhead data enable signal (tohen) is driven high, then the bit on the transmit overhead signal (toh) is inserted into the output data stream. insertion of bits using the toh signal overwrites internal overhead insertion.
ds3181/ds3182/ds3183/DS3184 182 of 389 10.10.8.5 transmit g.832 e3 ais generation g.832 e3 ais generation overwrites the data stream with ais. if transmit ais is enabled, the data stream (payload and e3 overhead) is forced to all ones. 10.10.8.6 receive g.832 e3 frame processor the g.832 e3 frame format is shown in figure 10-44 . fa1 and fa2 are the frame alignment bytes. em is the error monitoring byte used for path error monitoring. tr is the trail trace byte used for end-to-end connectivity verification. ma is the maintenance and adaptation byte used for far-end path status and performance monitoring (see figure 10-45 ). nr is the network operator byte allocated for network operator maintenance purposes. gc is the general-purpose communications channel byte allocated for user communications purposes. 10.10.8.7 receive g.832 e3 framing g.832 e3 framing determines the g.832 e3 frame boundary. the frame boundary is found by identifying the frame alignment bytes fa1 and fa2, which have a value of f6h and 28h respectively. the framer is an off-line framer that updates the data path frame counters when an out of frame (oof) condition has been detected. the use of an off-line framer reduces the average time required to reframe, and reduces data loss caused by burst error. the g.832 e3 framer checks each bit position for the frame alignment word (fa1 and fa2). the frame boundary is set once the frame alignment word is identified. since, the frame alignment word check is performed one bit at a time; up to 4296 checks may be needed to find the frame boundary. the data path frame counters are updated if an error free frame alignment word is received for two additional frames, and an oof condition is present. 10.10.8.8 receive g.832 e3 performance monitoring performance monitoring checks the e3 frame for alarm c onditions and errors . the alarm conditions detected are oof, lof, cofa, los, ais, rua1, and rdi. the errors accumulated are framing, parity, and remote error indication (rei) errors. an out of frame (oof) condition is declared when four consecutive frame alignment words (fa1 and fa2) contain one or more errors, when 986 or more frames out of 1,000 frames has a bip-8 block error, or at the next framing word check when a manual reframe is requested. an oof condition is terminated when three consecutive frame alignment words (fa1 and fa2) are error free or the g.832 e3 framer updates the data path frame counters. a loss of frame (lof) condition is declared by the lof integration counter when it has been active for a total of t ms. the lof integration counter is active (increments count) when an oof condition is present, it is inactive (holds count) when an oof condition is absent, and it is reset when an oof condition is absent for t continuous ms. t is programmable (0, 1, 2, or 3). an lof condition is terminated when an oof condition is absent for t continuous ms. a change of frame alignment (cofa) is declared when the g.832 e3 framer updates the data path frame counters with a frame alignment that is different from the current data path frame alignment. a loss of signal (los) condition is declared when the hdb3 encoder is active, and it declares a los condition. a los condition is terminated when the hdb3 encoder is inactive, or it terminates a los condition. an alarm indication signal (ais) condition is declared when 7 or less zeros are detected in each of two consecutive frame periods that do not contain a frame alignment word. an ais condition is terminated when 8 or more zeros are detected in each of two consecutive frame periods. a receive unframed all 1?s (rua1) condition is declared if in each of 4 consecutive 2047 bit windows, five or less zeros are detected and an oof condition is continuously present. a rua1 condition is terminated if in each of 4 consecutive 2047-bit windows, six or more zeros are detected or an oof condition is continuously absent. a remote defect indication (rdi) condition is declared when four consecutive frames are received with the rdi bit (first bit of ma byte) set to one. an rdi condition is terminated when four consecutive frames are received with the rdi bit set to zero. three types of errors are accumulated, framing, parity, and remote error indication (rei) errors. framing errors are determined by comparing fa1 and fa2 to their expected values. the type of framing errors accumulated is programmable (oof, bit, byte, or word). an oof error increments the count whenever an oof condition is first detected. a bit error increments the count once for each bit in fa1 and each bit in fa2 that does not match its expected value (up to 16 per frame). a byte error increments the count once for each fa byte (fa1 or fa2) that
ds3181/ds3182/ds3183/DS3184 183 of 389 does not match its expected value (up to 2 per frame). a word error increments the count once for each fa word (both fa1 and fa2) that does not match its expected value (up to 1 per frame). parity errors are determined by calculating the bip-8 (8-bit interleaved parity) of the current e3 frame (overhead and payload bytes), and comparing the calculated bip-8 to the em byte in the next frame. the type of parity errors accumulated is programmable (bit or block). a bit error increments the count once for each bit in the em byte that does not match the corresponding bit in the calculated bip-8 (up to 8 per frame). a block error increments the count if any bit in the em byte does not match the corresponding bit in the calculated bip-8 (up to 1 per frame). rei errors are determined by the rei bit (second bit of ma byte). a one indicates an error and a zero indicates no errors. the receive defect indication (rdi) alarm is transmitted when the receive framer detects one or more of the indicated alarm conditions. the rdi bit is not transmitted when all of the indicated alarm conditions are absent. the rdi bit in the ma byte of the g.832 overhead is set high in the transmit formatter to transmit the alarm. setting the receive defect indication on los, oof, lof, or ais is individually programmable (on or off). the receive error indication (rei) bit of the ma byte in the transmit frame will transition from low to high once for each frame in which a parity error is detected by the receive framer. 10.10.8.9 receive g.832 e3 overhead extraction overhead extraction extracts all of the e3 overhead bytes from the g.832 e3 frame. all of the e3 overhead bytes fa1, fa2, em, tr, ma, nr, and gc are output on the receive overhead interface (roh, rohsof, and rohclk). the em byte is output as an error indication (modulo 2 addition of the calculated bip-8 and the em byte. the tr byte is sent to the receive trail trace controller. the payload type (third, fourth, and fifth bits of the ma byte) is integrated and stored in a register with change and unstable indications. the integrated received payload type is also compared against an expected payload type. if the received and expected payload types do not match (see table 10-37 ), a mismatch indication is set. table 10-37. payload label match status expected received status 000 000 match 000 001 mismatch 000 xxx mism atch 001 000 mismatch 001 001 match 001 xxx match xxx 000 mism atch xxx 001 match xxx xxx match xxx yyy mismatch xxx and yyy equal any value other than 000 or 001; xxx  yyy the multiframe indicator and timing marker bits (sixth, seventh, and eighth bits of the ma byte) can be integrated and stored in three register bits or extracted, integrated, and stored in four register bits. the bits (three or four) are stored with a change indication. the multiframe indicator and timing marker storage type is programmable (integrated or extracted). when the multiframe indicator and timing marker bits are integrated, the last three bits of the ma byte are integrated and stored in three register bits. when the multiframe indicator and timing marker bits are extracted, four timing source indicator bits are transferred in a four-frame multiframe, msb first. the multiframe indicator bits (sixth and seventh bits of the ma byte) identify the phase of the multiframe (00, 01, 10, or 11). the timing marker bit (eighth bit of the ma byte) contains the timing source indicator bit indicated by the multiframe
ds3181/ds3182/ds3183/DS3184 184 of 389 indicator bits (first, second, third, or fourth bit, respectively). the four timing source indicator bits are extracted from the multiframe, integrated, and stored in four register bits with unstable and change indications. the nr byte is integrated and stored in a register along with a change indication, it is sent to the receive feac controller, and it can be sent to the receive hdlc controller. the byte sent to the receive hdlc controller is programmable (nr or gc). the gc byte is integrated and stored in a register along with a change indication, and can be sent to the receive hdlc controller. the byte sent to the receive hdlc controller is programmable (nr or gc). 10.10.8.10 receive g.832 downstream ais generation downstream g.832 e3 ais can be automatically generated on an oof, los, or ais condition or manually inserted. if automatic downstream ais is enabled, downstream ais is inserted when a los, oof, or ais condition is declared. automatic downstream ais is programmable (on or off). if manual downstream ais insertion is enabled, downstream ais is inserted. manual downstream ais insertion is programmable (on or off). downstream ais is removed when all oof, los, and ais conditions are terminated and manual downstream ais insertion is disabled. rpdt will be forced to all ones during downstream ais. 10.10.9 clear-channel frame processor 10.10.9.1 transmit clear-channel ais generation clear-channel ais generation overwrites the data stream with ais. if transmit ais is enabled, the data stream (payload) is forced to all ones. 10.10.9.2 receive clear-channel performance monitoring performance monitoring checks the clear-channel signal fo r alarm conditions. the al arm conditions detected are los and rua1. a loss of signal (los) condition is declared when the b3zs/hdb3 encoder is active, and it declares a los condition. a los condition is terminated when the b3zs/hdb3 encoder is inactive, or it terminates a los condition. a receive unframed all 1?s (rua1) condition is declared if in each of 4 consecutive 2047 bit windows, five or less zeros are detected. a rua1 condition is terminated if in each of 4 consecutive 2047 bit windows, six or more zeros are detected. 10.10.9.3 receive clear-channel downstream ais generation downstream clear-channel ais can be automatically generated on a los condition or manually inserted. if automatic downstream ais is enabled, downstream ais is inserted when a los condition is declared. automatic downstream ais is programmable (on or off). if manual downstream ais insertion is enabled, downstream ais is inserted. manual downstream ais insertion is programmable (on or off). downstream ais is removed when all los conditions are terminated and manual downstream ais insertion is disabled. all bits will be forced to ones during downstream ais. 10.11 hdlc overhead controller 10.11.1 general description the ds318x devices contain built-in hdlc controllers (one per port) with 256-byte fifos for insertion/extraction of ds3 pmdl, g.751 sn bit and g.832 nr/gc bytes and plcp nr/gc bytes. the hdlc overhead controller demaps hdlc overhead packets from the ds3/e3 data stream in the receive direction and maps hdlc packets into the ds3/e3 data stream in the transmit direction. the receive direction performs packet processing and stores the packet data in the fifo. it removes packet data from the fifo and outputs the packet data to the microprocessor via the register interface. the transmit direction inputs the packet data from the microprocessor via the register interface and stores the packet data in the fifo. it removes the packet data from the fifo and performs packet processing. the bits in a byte are received msb first, lsb last. when they are output serially, they are output msb first, lsb last. the bits in a byte in an incoming signal are numbered in the order they are received, 1 (msb) to 8 (lsb).
ds3181/ds3182/ds3183/DS3184 185 of 389 however, when a byte is stored in a register, the msb is stored in the lowest numbered bit (0), and the lsb is stored in the highest numbered bit (7). this is to differentiate between a byte in a register and the corresponding byte in a signal. refer to figure 10-46 for the location of hdlc controllers within the ds318x devices. figure 10-46. hdlc controller block diagram ds3/e3 tr ans mit liu ieee p1149.1 jtag test access port microprocessor in t e r f a c e hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 rec eiv e framer trail trac e buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx pac ket processor ds3/e3 rec eiv e liu tais tua 1 tx fra c/ plcp rx fra c/ pl cp cloc k rate adapter tx bert rx bert plb alb ua 1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.11.2 features  programmable inter-frame fill ? the inter-frame fill between packets can be all 1?s or flags.  programmable fcs generation / monitoring ? a fcs-16 can be generated and appended to the end of the packet, and the fcs can be checked and removed from the end of the packet.  programmable bit reordering ? the packet data can be can be output msb first or lsb first from the fifo.  programmable data inversion ? the packet data can be inverted immediately after packet processing on the transmit, and immediately before packet processing on the receive.  fully independent transmit and receive paths  fully independent line side and register interface timing ? the data storage can be read from or written to via the microprocessor interface while all line side clocks and signals are inactive, and read from or written to via the line side while all microprocessor interface clocks and signals are inactive. 10.11.3 transmit fifo the transmit fifo block contains memory for 256 bytes of dat a with data status information and controller circuitry for reading and writing the memory. the transmit fifo controller functions include filling the memory, tracking the memory fill level, maintaining the memory read and write pointers, and detecting memory overflow and underflow conditions. the transmit fifo receives data and status from the microprocessor interface, and stores the data along with the data status information in memory. the transmit packet processor reads the data and data status information from the transmit fifo. the transmit fifo also outputs fifo fill status (empty/data storage available/full) via the microprocessor interface. all operations are byte based. the transmit fifo is considered empty when its memory does not contain any data. the transmit fifo is considered to have data storage available when its memory has a programmable number of bytes or more available for storage. the transmit fifo is considered full when it does not have any space available for storage. the transmit fifo accepts data from the register interface until full. if the transmit fifo is written to while the fifo is full, the write is ignored, and a fifo overflow condition is declared. the transmit packet processor reads the transmit fifo. if the transmit packet processor attempts to read the transmit fifo while it is empty, a fifo underflow condition is declared.
ds3181/ds3182/ds3183/DS3184 186 of 389 10.11.4 transmit hdlc overhead processor the transmit hdlc overhead processor accepts data from the transmit fifo, performs bit reordering, fcs processing, stuffing, packet abort sequence insertion, and inter-frame padding. a byte is read from the transmit fifo with a packet end status. when a byte is marked with a packet end indication, the output data stream will be padded with ffh and marked with a fifo empty indication if the transmit fifo contains less than two bytes or transmit packet start is disabled. transmit packet start is programmable (on or off). when the transmit packet processor reads the transmit fifo while it is empty, the output data stream is marked with an abort indication. once the transmit fifo is empty, the output data stream will be padded with interframe fill until the transmit fifo contains two or more bytes of data and transmit packet start is enabled. bit reordering changes the bit order of each byte. if bit reordering is disabled, the outgoing 8-bit data stream dt[1:8] with dt[1] being the msb and dt[8] being the lsb is input from the transmit fifo with the msb in tfd[0] and the lsb in tfd[7] of the transmit fifo data tfd[7:0]. if bit reordering is enabled, the outgoing 8-bit data stream dt[1:8] is input from the transmit fifo with the msb in tfd[7] and the lsb in tfd[0] of the transmit fifo data tfd[7:0]. dt[1] is the first bit transmitted on the outgoing data stream. fcs processing calculates a fcs and appends it to the packet. fcs calculation is a crc-16 calculation over the entire packet. the polynomial used for the crc-16 is x 16 + x 12 + x 5 + 1. the crc-16 is inverted after calculation, and appended to the packet. for diagnostic purposes, a fcs error can be inserted. this is accomplished by appending the calculated crc-16 without inverting it. fcs e rror insertion is programmable (on or off). when fcs processing is disabled, the packet is output without appending a fcs. fcs processing is programmable (on or off). stuffing inserts control data into the packet to prevent packet data from mimicking flags. stuffing is halted during fifo empty periods. the 8-bit parallel data stream is multiplexed into a serial data stream, and bit stuffing is performed. bit stuffing consists of inserting a '0' directly following any five contiguous '1's. stuffing is performed from a packet start until a packet end. inter-frame padding inserts inter-frame fill between the packet start and end flags when the fifo is empty. the inter-frame fill can be flags or '1's. if the inter-frame fill is flags, flags (minimum two) are inserted until a packet start is received. if the inter-frame fill is all '1's, an end flag is inserted, ?1?s are inserted until a packet start is received, and a start flag is inserted after the ?1?s. the number of '1's between the end flag and start flag may not be an integer number of bytes, however, the inter-frame fill will be at least 15 consecutive '1's. if the fifo is not empty between a packet end and a packet start, then two flags are inserted between the packet end and packet start. the inter-frame padding type is programmable (flags or ?1?s). packet abort insertion inserts a packet abort sequences as necessary. if a packet abort indication is detected, a packet abort sequence is inserted and inter-frame padding is done until a packet start is detected. the abort sequence is ffh. once all packet processing has been completed, the datastream is inserted into the ds3/e3 datastream at the proper locations. if transmit data inversion is enabled, the outgoing data is inverted after packet processing is performed. transmit data inversion is programmable (on or off). 10.11.5 receive hdlc overhead processor the receive hdlc overhead packet processor accepts data from the ds3/e3 framer or the plcp framer and performs packet delineation, inter-frame fill filtering, packet abort detection, destuffing, fcs processing, and bit reordering. if receive data inversion is enabled, the incoming data is inverted before packet processing is performed. receive data inversion is programmable (on or off). packet delineation determines the packet boundary by identifying a packet start flag. each time slot is checked for a flag sequence (7eh). once a flag is found, if it is identified as a start or end flag, and the packet boundary is set. there may be a single flag (both end and start) between packets, there may be an end flag and a start flag with a shared zero (011111101111110) between packets, there may be an end flag and a start flag (two flags) between packets, or there may be an end flag, inter-frame fill, and a start flag between packets. the flag check is performed one bit at a time. inter-frame fill filtering removes the inter-frame fill between a start flag and an end flag. all inter-frame fill is discarded. the inter-frame fill can be flags (01111110) or all '1's. when inter-frame fill is all ?1?s, the number of '1's between the end flag and the start flag may not be an integer number of bytes. when inter-frame fill is flags, the
ds3181/ds3182/ds3183/DS3184 187 of 389 number of bits between the end flag and the start flag will be an integer number of bytes (flags). any time there is less than 16 bits between two flags, the data will be discarded. packet abort detection searches for a packet abort sequence. between a packet start flag and a packet end flag, if an abort sequence is detected, the packet is marked with an abort indication, and all subsequent data is discarded until a packet start flag is detected. the abort sequence is seven consecutive ones. packet abort detection searches for a packet abort sequence. between a packet start flag and a packet end flag, if an abort sequence is detected, the packet is marked with an abort indication, and all subsequent data is discarded until a packet start flag is detected. the abort sequence is seven consecutive ones. destuffing removes the extra data inserted to prevent data from mimicking a flag or an abort sequence. after a start flag is detected, destuffing is performed until an end flag is detected. destuffing consists of discarding any '0' that directly follows five contiguous '1's. after destuffing is completed, the serial bit stream is demultiplexed into an 8-bit parallel data stream and passed on with packet start, packet end, and packet abort indications. if there is less than eight bits in the last byte, an invalid packet status is set, and the packet is tagged with an abort indication. fcs processing checks the fcs, discards the fcs bytes, and marks fcs erred packets. the fcs is checked for errors, and the last two bytes are removed from the end of the packet. if a fcs error is detected, the packet is marked with a fcs error indication. the hdlc controller performs fcs-16 checking. fcs processing is programmable (on or off). if fcs processing is disabled, fcs checking is not performed, and all of the packet data is passed on. bit reordering changes the bit order of each byte. if bit reordering is disabled, the incoming 8-bit data stream dt[1:8] with dt[1] being the msb and dt[8] being the lsb is output to the receive fifo with the msb in rfd[0] and the lsb in rfd[7] of the receive fifo data rfd[7:0]. if bit reordering is enabled, the incoming 8-bit data stream dt[1:8] is output to the receive fifo with the msb in rfd[7] and the lsb in rfd[0] of the receive fifo data rfd[7:0]. dt[1] is the first bit received from the incoming data stream. once all of the packet processing has been completed, the 8-bit parallel data stream is passed on to the receive fifo with packet start, packet end, and packet error indications. 10.11.6 receive fifo the receive fifo block contains memory for 256 bytes of data with data status information and controller circuitry for reading and writing the memory. the receive fifo controller controls filling the memory, tracking the memory fill level, maintaining the memory read and write pointers, and detecting memory overflow and underflow conditions. the receive fifo accepts data and data status from the receive packet processor and stores the data along with data status information in memory. the data is read from the receive fifo via the microprocessor interface. the receive fifo also outputs fifo fill status (empty/data available/full) via the microprocessor interface. all operations are byte based. the receive fifo is considered empty when it does not contain any data. the receive fifo is considered to have data available when there is a programmable number of bytes or more stored in the memory. the receive fifo is considered full when it does not have any space available for storage. the receive fifo accepts data from the receive packet processor until full. if a packet start is received while full, the data is discarded and a fifo overflow condition is declared. if any other packet data is received while full, the current packet being transferred is marked with an abort indication, and a fifo overflow condition is declared. once a fifo overflow condition is declared, the receive fifo will discard incoming data until a packet start is received while the receive fifo has 16 or more bytes available for storage. if the receive fifo is read while the fifo is empty, the read is ignored, and an invalid data indication given. 10.12 trail trace controller 10.12.1 general description each port has a dedicated trail trace buffer for e3-g.832 or ds3/e3 plcp link management the trail trace controller performs extraction and storage of the incoming g.832 or plcp trail access point identifier in a 16-byte receive register.
ds3181/ds3182/ds3183/DS3184 188 of 389 the trail trace controller extracts/inserts e3-g.832 or plcp trail access point identifiers using a 16-byte register (one for transmit, one for receive). (e3-g.832 and plcp framing are mutually exclusive; therefore one controller can be used for both.) the trail trace controller demaps a 16-byte trail trace identifier from the e3-g.832 tr byte of the overhead or plcp datastream in the receive direction and maps a trace identifier into the e3-g.832 or plcp datastream in the transmit direction. the receive direction inputs the trace id data stream, performs trace id processing, and stores the trace identifier data in the data storage using line timing. it removes trace identifier data from the data storage and outputs the trace identifier data to the microprocessor via the microprocessor interface using register timing. the data is forced to all ones during los, lof and ais detection to eliminate false messages the transmit direction inputs the trace identifier data from the microprocessor via the microprocessor interface and stores the trace identifier data in the data storage using register timing. it removes the trace identifier data from the data storage, performs trace id processing, and outputs the trace id data stream. refer to figure 10-47 for the location of the trail trace controller with the ds318x devices. figure 10-47. trail trace controller block diagram ds3/e3 tr ans mit liu ieee p1149.1 jtag test access port microprocessor in t e r f a c e hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 rec eiv e framer trail trac e buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx pac ket processor ds3/e3 rec eiv e liu tais tua 1 tx fra c/ plcp rx fra c/ pl cp cloc k rate adapter tx bert rx bert plb alb ua 1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.12.2 features  programmable trail trace id ? the trail trace id controller can be programmed to handle a 16-byte trail trace identifier (trail trace mode).  programmable transmit trace id ? all 16 bytes of the transmit trail trace identifier are programmable.  programmable receive expected trace id ? a 16-byte expected trail trace identifier can be programmed. both a mismatch and unstable indication are provided.  programmable trace id multiframe alignment ? the transmit side can be programmed to perform trail trace multiframe alignment insertion. the receive side can be programmed to perform trail trace multiframe synchronization.  programmable bit reordering ? the trace identifier data can be output msb first or lsb first from the data storage.  programmable data inversion ? the trace identifier data can be inverted immediately after trace id processing on the transmit side, and immediately before trail id processing on the receive side.  fully independent transmit and receive sides  fully independent line side and register interface timing ? the data storage can be read from or written to via the microprocessor interface while all line side clocks and signals are inactive, and read from or written to via the line side while all microprocessor interface clocks and signals are inactive.
ds3181/ds3182/ds3183/DS3184 189 of 389 10.12.3 functional description the bits in a byte are received most significant bit (msb) first and least significant bit (lsb) last. when they are output serially, they are output msb first and lsb last. the bits in a byte in an incoming signal are numbered in the order they are received, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7), and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. 10.12.4 transmit data storage the transmit data storage block contains memory for 16 bytes of data and controller circuitry for reading and writing the memory. the transmit data storage controller functions include filling the memory and maintaining the memory read and write pointers. the transmit data storage receives data from the microprocessor interface, and stores the data in memory. the transmit trace id processor reads the data from the transmit data storage. the transmit data storage contains the transmit trail trace identifier. note: the contents of the transmit trail (path) trace identifier memory will be random data immediately after power-up, and will not change during a reset ( rst or drst low). 10.12.5 transmit trace id processor the transmit trace id processor accepts data from transmit data storage, processes the data according to the transmit trace id mode, and outputs the serial trace id data stream. 10.12.6 transmit trail trace processing the transmit trail trace processing accepts data from the transmit data storage performs bit reordering and multiframe alignment insertion. bit reordering changes the bit order of each byte. if bit reordering is disabled, the outgoing 8-bit data stream dt[1:8] with dt[1] being the msb and dt[8] being the lsb is input from the transmit data storage with the msb in ttd[7] and the lsb in ttd[0] of the transmit trace id data ttd[7:0]. if bit reordering is enabled, the outgoing 8- bit data stream dt[1:8] is input from the transmit data storage with the msb is in ttd[0] and the lsb is in ttd[7] of the transmit trace id data ttd[7:0]. dt[1] is the first bit transmitted on the outgoing data stream. multiframe alignment insertion overwrites the msb of each trail trace byte with the multiframe alignment signal. the msb of the first byte in the trail trace identifier is overwritten with a one, the msb of the other 15 bytes in the trail trace identifier are overwritten with a zero. multiframe alignment insertion is programmable (on or off). if transmit data inversion is enabled, the outgoing data is inverted after trail trace processing is performed. transmit data inversion is programmable (on or off). if transmit trail trace identifier idle (idle) is enabled, the trail trace data is overwritten with all zeros. transmit idle is programmable (on or off). 10.12.7 receive trace id processor the receive trace id processor receives the incoming serial trace id data stream and processes the incoming data according to the receive trace id mode, and passes the trace id data on to receive data storage. the bits in a byte are received msb first, lsb last. the bits in a byte in an incoming signal are numbered in the order they are received, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7), and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. 10.12.8 receive trail trace processing the receive trail trace processing accepts an incoming data line and performs trail trace alignment, trail trace extraction, expected trail trace comparison, and bit reordering. if receive data inversion is enabled, the incoming data is inverted before trail trace processing is performed. receive data inversion is programmable (on or off). trail trace alignment determines the trail trace identifier boundary by identifying the multiframe alignment signal. the multiframe alignment signal (mas) is located in the msb of each byte (see figure 10-48 ). the mas bits are each checked for the multiframe alignment start bit, which is a one. once a multiframe alignment start bit is found,
ds3181/ds3182/ds3183/DS3184 190 of 389 the remaining 15 bits of the mas are verified as being zero. the mas check is performed one byte at a time. multiframe alignment is programmable (on or off). when multiframe alignment is disabled, the incoming bytes are sequentially stored starting with a random byte. figure 10-48. trail trace byte (dt = trail trace data) bit 1 msb bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 bit 8 lsb mas or dt[1] dt[2] dt[3] dt[4] dt[5] dt[6] dt[7] dt[8] trail trace extraction extracts the trail trace identifier from the incoming trail trace data stream, generates a trail trace identifier change indication, detects a trail trace identifier idle (idle) condition, and detects a trail trace identifier unstable (tiu) condition. the trail trace identifier bytes are stored sequentially with the first byte (mas equals 1 if trail trace alignment is enabled) being stored in the first byte of memory. if the exact same non-zero trail trace identifier is received five consecutive times and it is different from the receive trail trace identifier, a receive trail trace identifier update is performed, and the receive trail trace identifier change indication is set. an idle condition is declared when an all zeros trail trace identifier is received five consecutive times. an idle condition is terminated when a non-zero trail trace identifier is received five consecutive times or a tiu condition is declared. a tiu condition is declared if eight consecutive trail trace identifiers are received that do not match either the receive trail trace identifier or the previously stored current trail trace identifier. the tiu condition is terminated when a non-zero trail trace identifier is received five consecutive times or an idle condition is declared. expected trail trace comparison compares the received and expected trail trace identifiers. the comparison is a 7- bit comparison of the seven least significant bits (dt[2:8] (see figure 10-48 ) of each trail trace identifier byte (the multiframe alignment signal is ignored). if the received and expected trail trace identifiers do not match, a trail trace identifier mismatch (tim) condition is declared. if they do match the tim condition is terminated. the 16-byte expected trail trace identifier is programmable. expected trail trace comparison is programmable (on or off). if multiframe alignment is disabled, expected trail trace comparison is disabled. immediately after a reset, the receive trail trace identifier is invalid. all comparisons between the receive trail trace identifier and expected trail trace identifier will match (a tim condition cannot occur) until after the first receive trail trace identifier update occurs. bit reordering changes the bit order of each byte. if bit reordering is disabled, the incoming 8-bit data stream dt[1:8] with dt[1] being the msb and dt[8] being the lsb is output to the receive data storage with the msb in rtd[7] and the lsb in rtd[0] of the receive trace id data rtd[7:0]. if bit reordering is enabled, the incoming 8-bit data stream dt[1:8] is output to the receive data storage with the msb in rtd[0] and the lsb in rtd[7] of the receive trace id data rtd[7:0]. dt[1] is the first bit received from the incoming data stream. once all of the trail trace processing has been completed, the 8-bit parallel data stream is passed on to the receive data storage. 10.12.9 receive data storage the receive data storage block contains memory for 48 bytes of data, maintains data status information, and has controller circuitry for reading and writing the memory. the receive data storage controller functions include filling the memory and maintaining the memory read and write pointers. the receive data storage accepts data and data status from the receive trace id processor, stores the data in memory, and maintains data status information. the data is read from the receive data storage via the microprocessor interface. the receive data storage contains the current trail trace identifier, the receive trail trace identifier, and the expected trail trace identifier.
ds3181/ds3182/ds3183/DS3184 191 of 389 10.13 feac controller 10.13.1 general description the feac controller demaps feac codewords from a ds3/e3 data stream in the receive direction and maps feac codewords into a ds3/e3 data stream in the transmit direction. the transmit direction demaps feac codewords from a ds3/e3 data stream. the receive direction performs feac processing, and stores the codewords in the fifo using line timing. it removes the codewords from the fifo and outputs them to the microprocessor via the register interface. the transmit direction inputs codewords from the microprocessor via the register interface and stores the codewords. it removes the codewords and performs feac processing. see figure 10-49 for the location of the feac controller in the block diagram figure 10-49. feac controller block diagram ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx packet processor ds3/e3 receive liu tais tua1 tx frac/ plcp rx frac/ plcp clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.13.2 features  programmable dual codeword output ? the transmit side can be programmed to output a single codeword ten times, one codeword ten times followed by a second codeword ten times, or a single codeword continuously.  four codeword receive fifo  fully independent transmit and receive paths  fully independent line side and register side timing ? the fifo can be read from or written to at the register interface side while all line side clocks and signals are inactive, and read from or written to at the line side while all register interface side clocks and signals are inactive. 10.13.3 functional description the bits in a code are received msb first, lsb last. when they are output serially, they are output msb first, lsb last. the bits in a code in an incoming signal are numbered in the order they are received, 1 (msb) to 6 (lsb). however, when a code is stored in a register, the msb is stored in the lowest numbered bit (0), and the lsb is stored in the highest numbered bit (5). this is to differentiate between a code in a register and the corresponding code in a signal.
ds3181/ds3182/ds3183/DS3184 192 of 389 10.13.3.1 transmit data storage the transmit data storage block contains the registers for two feac codes (c[1:6]) and controller circuitry for reading and writing the memory. the transmit data storage receives data from the microprocessor interface, and stores the data in memory. the transmit feac processor reads the data from the transmit data storage. 10.13.3.2 transmit feac processor the transmit feac processor accepts data from the transmit data storage performs feac processing. the feac codes are read from transmit data storage with the msb (c[1]) in tfca[0] or tfcb[0], and the lsb (c[6]) in tfca[5] or tfcb[5]. feac processing has four modes of operation (idle, single code, dual code, and continuous code). in idle mode, all ones are output on the outgoing feac data stream. in single code mode, the code from tfca[5:0] is inserted into a codeword (see figure 10-50 ), and sent ten consecutive times. once the ten codewords have been sent, all ones are output. in dual code mode, the code from tfca[5:0] is inserted into a codeword, and sent ten consecutive times. then the code from tfcb[5:0] is inserted into a codeword, and sent ten consecutive times. once both codewords have both been sent ten times, all ones are output. in continuous mode, the code from tfca[5:0] is inserted into a codeword, and sent until the mode is changed 10.13.3.3 receive feac processor the receive feac processor accepts an incoming data line and extracts all overhead and performs feac code extraction, and idle detection. figure 10-50. feac codeword format cx - feac code receive/transmit order 1 0 c6 0 msb 1 lsb 16 1 1 1 1 1 1 1 c5 c4 c3 c2 c1 feac code extraction determines the codeword boundary by identifying the codeword sequence and extracts the feac code. a feac codeword is a repeating 16-bit pattern (see figure 10-50 ). the codeword sequence is the pattern (0 xxxxxx 011111111) that contains each feac code (c[6:1]). each time slot is checked for a codeword sequence. once a codeword sequence is found, the feac code is checked. if the same feac code is received in three consecutive codewords without errors, the feac code detection indication is set, and the feac code is stored in the receive fifo with the msb (c[1]) in rff[0], and the lsb (c[6]) in rff[5]. the feac code detection indication is cleared if two consecutively received feac codewords differ from the current feac codeword, or a feac idle condition is detected. idle detection detects a feac idle condition. a feac idle condition is declared if 16 consecutive ones are received. the feac idle condition is terminated when the feac code detection indication is set. 10.13.3.4 receive feac fifo the receive fifo block contains memory for four feac codes (c[1:6]) and controller circuitry for reading and writing the memory. the receive fifo controller functions include filling the memory, tracking the memory fill level, maintaining the memory read and write pointers, and detecting memory overflow and underflow conditions. the receive fifo accepts data from the receive feac processor and stores the data in memory. the data is read from the receive fifo via the microprocessor interface. the receive fifo also outputs fifo fill status (empty) via the microprocessor interface. all operations are code based (six bits). the receive fifo is considered empty when it does not contain any data. the receive fifo accepts data from the receive feac processor until full. if a feac code is received while full, the data is discarded and a fifo overflow condition is declared. if the receive fifo is read while the fifo is empty, the read is ignored.
ds3181/ds3182/ds3183/DS3184 193 of 389 10.14 line encoder/decoder 10.14.1 general description the b3zs/hdb3 decoder converts a bipolar signal to a unipolar signal in the receive direction. b3zs/hdb3 encoder converts a unipolar signal to a bipolar signal in the transmit direction. in the transmit direction, the encoder converts the unipolar signal to a bipolar signal, optionally performing zero suppression encoding (hdb3/b3zs), optionally inserting errors, and outputs the bipolar signal. in the receive direction, the decoder receives a bipolar signal, monitors it for alarms and errors, optionally performing zero suppression decoding (hdb3/b3zs), and converts it to a unipolar signal. if the port line interface is configured for a unipolar mode and the framer is not configured for one of the ?-ohm? modes, the bpv detector will count pulses on the rlcvn pin. figure 10-51 shows the locations of the line encoder/decoder block in the ds318x devices. figure 10-51. line encoder/decoder block diagram ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx packet processor ds3/e3 receive liu tais tua1 tx frac/ plcp rx frac/ plcp clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.14.2 features  performs bipolar to unipolar encoding and decoding ? converts a unipolar signal into an ami bipolar signal (pos data, and neg data) and vice versa.  programmable zero suppression ? b3zs or hdb3 zero suppression encoding and decoding can be performed, or the bipolar data stream can be left as an ami encoded data stream.  programmable receive zero suppression code format ? the signature of b3zs or hdb3 is selectable .  generates and detects alarms and errors ? in the receive direction, detects los alarm condition bpv errors, and exz errors. in the transmit direction, errors can be inserted into the outgoing data stream. 10.14.3 b3zs/hdb3 encoder b3zs/hdb3 encoder performs unipolar to bipolar conversion and zero suppression encoding. unipolar to bipolar conversion converts the unipolar data stream into an ami bipolar data stream (pos and neg). in an ami bipolar data stream a zero is represented by a zero on both the pos and neg signals, and a one is represented by a one on a bipolar signal (pos or neg), and a zero on the other bipolar signal (neg or pos). successive ones are represented by ones that are alternately output on the pos and neg signals. i.e., if a one is represented by a one on pos and a zero on neg, the next one will be represented by a one on neg and a zero on pos.
ds3181/ds3182/ds3183/DS3184 194 of 389 zero suppression encoding converts an ami bipolar data stream into a b3zs or hdb3 encoded bipolar data stream. a b3zs encoded bipolar signal is generated by inserting a b3zs signature into the bipolar data stream if both the pos and neg signals are zero for three consecutive clock periods. an hdb3 encoded bipolar signal is generated by inserting an hdb3 signature into the bipolar data stream if both the pos and neg signals are zero for four consecutive clock periods. zero suppression encoding can be disabled which will result in ami-coded data. error insertion is also performed. error insertion inserts bipolar violation (bpv) or excessive zero (exz) errors onto the bipolar signal. a bpv error will be inserted when three consecutive ones occur. an exz error will be inserted when three (or four) consecutive zeros on the bipolar signal occur by inhibiting the insertion of a b3zs (hdb3) signature. there will be at least one intervening pulse between consecutive bpv or exz errors. a single bpv or exz error inserted will be detected as a single bpv/exz error at the far-end, and will not cause any other type of error to be detected. for example, if a bpv error is inserted, the far-end should not also detect a data error. 10.14.4 transmit line interface the transmit line interface accepts a bipolar data stream from the b3zs/hdb3 encoder, performs error insertion, and transmits the bipolar data stream. error insertion inserts bpv or exz errors into the bipolar signal. when a bpv error is to be inserted, the transmit line interface waits for the next occurrence of three consecutive ones. the first bipolar one is generated according to the normal ami rules. the second bipolar one is generated by transmitting the same values on tpos and tneg as the values for the first one. the third bipolar one is generated according to the normal ami rules. when an exz error is to be inserted, the transmit line interface waits for the next occurrence of three (four) consecutive zeros on the bipolar signal, and inhibits the insertion of a b3zs (hdb3) signature. there must be at least one intervening one between consecutive bpv or exz errors. a single bpv or exz error inserted must be detected as a single bpv/exz error at the far-end, and not cause any other type of error to be detected. for example, if a bpv error is inserted, the far-end should not also detect a data error. if a second error insertion request of a given type (bpv or exz) is initiated before a previous request has been completed, the second request will be ignored. the outgoing bipolar data stream consists of positive pulse data (tposn) and negative pulse data (tnegn). tposn and tnegn are updated on the rising edge of tlclkn. 10.14.5 receive line interface the receive line interface receives a bipolar signal. the incoming bipolar data line consists of positive pulse data (rposn), negative pulse data (rnegn), and clock (rlclkn) signals. rposn and rnegn are sampled on the rising edge of rlclkn. the incoming bipolar signal is checked for a loss of signal (los) condition, and passed on to b3zs/hdb3 decoder. an los condition is declared if both rposn and rnegn do not have any transitions for 192 clock cycles. the los condition is terminated after 192 clock cycles without any exz errors. note: when zero suppression (b3zs or hdb3) decoding is disabled, the los condition is cleared, and cannot be detected. 10.14.6 b3zs/hdb3 decoder the b3zs/hdb3 decoder receives a bipolar signal from the liu (or the rpos/rneg pins). the incoming bipolar signal is checked for a loss of signal (los) condition. a los condition is declared if both the positive pulse data and negative pulse data signals do not have any transitions for 192 clock cycles. the los condition is terminated after 192 clock cycles without any exz errors. b3zs/hdb3 decoder performs exz detection, zero suppression decoding, bpv detection, and bipolar to unipolar conversion. exz detection checks the bipolar data stream for excessive zeros (exz) errors. in b3zs mode, an exz error is declared whenever there is an occurrence of 3 or more zeros. in hdb3 mode, an exz error is declared whenever there is an occurrence of 4 or more zeros. exz errors are accumulated in the exz counter ( line.rexzcr register). zero suppression decoding converts b3zs or hdb3 encoded bipolar data into an ami bipolar signal. in b3zs mode, the encoded bipolar signal is checked for a b3zs signature. if a b3zs signature is found, it is replaced with three zeros. in hdb3 mode, the encoded bipolar signal is checked for an hdb3 signature. if an hdb3 signature is found, it is replaced with four zeros. the format of both an hdb3 signature and a b3zs signature is programmable. when line.rcr .rezsf = 0, the decoder will search for a zero followed by a bpv in b3zs mode, and in hdb3 mode it will search for two zeros followed by a bpv. if line.rcr .rezsf = 1, the same criteria is applied with an
ds3181/ds3182/ds3183/DS3184 195 of 389 additional requirement that the bpv must be the opposite polarity of the previous bpv. see figure 10-52 and figure 10-53 . zero suppression decoding is also programmable (on or off). note: immediately after a reset or a los condition, the first b3zs/hdb3 signature to be detected will not depend upon the polarity of any bpv contained within the signature. figure 10-52. b3zs signatures rlclk rpos rneg (rx data) b3zs signature when line.rcr.rezsf = 0 v rlclk rpos rneg (rx data) v b3zs signature when line.rcr.rezsf = 1 v figure 10-53. hdb3 signatures rlclk rpos rneg (rx data) hdb3 signature when line.rcr.rezsf = 0 v rlclk rpos rneg (rx data) hdb3 signature when line.rcr.rezsf = 1 v v bpv detection checks the bipolar signal for bipolar violation (bpv) errors and e3 code violation (cv) errors. a bpv error is declared if two 1?s are detected on rxp or rxn without an intervening 1 on rxn or rxp, and the 1?s are not part of a b3zs/hdb3 signature, or when both rxp and rxn are a one. an e3 coding violation is declared if consecutive bpvs of the same polarity are detected (itu o.161 definition). e3 cvs are accumulated in the bpv counter ( line.rbpvcr register) if e3 cv detection has been enabled (applicable only in hdb3 mode), otherwise, bpvs are accumulated in the bpv counter. if zero code suppression is disabled, the bpv counter will count all
ds3181/ds3182/ds3183/DS3184 196 of 389 bipolar violations. the bpv counter will count pulses on the rlcvn pin when the device is configured for unipolar mode. note: immediately after a reset (or datapath reset) or a los condition, a bpv will not be declared when the first valid one (rpos high and rneg low, or rpos low and rneg high) is received. bipolar to unipolar conversion converts the ami bipolar data into a unipolar signal by oring together the rxp and rxn signals. 10.15 bert 10.15.1 general description the bert is a software-programmable test-pattern generator and monitor capable of meeting most error performance requirements for digital transmission equipment. it will generate and synchronize to pseudo-random patterns with a generation polynomial of the form x n + x y + 1, where n and y can take on values from 1 to 32 and to repetitive patterns of any length up to 32 bits. the transmit direction generates the programmable test pattern, and inserts the test pattern payload into the data stream. the receive direction extracts the test pattern payload from the receive data stream, and monitors the test pattern payload for the programmable test pattern. figure 10-54 shows the location of the bert block within the ds318x devices. figure 10-54. bert block diagram ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx packet processor ds3/e3 receive liu tais tua1 tx frac/ plcp rx frac/ plcp clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.15.2 features  programmable prbs pattern ? the pseudo random bit sequence (prbs) polynomial (x n + x y + 1) and seed are programmable (length n = 1 to 32, tap y = 1 to n - 1, and seed = 0 to 2 n - 1).  programmable repetitive pattern ? the repetitive pattern length and pattern are programmable (the length n = 1 to 32 and pattern = 0 to 2 n - 1).  24-bit error count and 32-bit bit count registers  programmable bit error insertion ? errors can be inserted individually, on a pin transition, or at a specific rate. the rate 1/10 n is programmable (n = 1 to 7).  pattern synchronization at a 10 -3 ber ? pattern synchronization will be achieved even in the presence of a random bit error rate (ber) of 10 -3 . 10.15.3 configuration and monitoring set port.cr1 .bena = 1 to enable the bert. the bert must be enabled before the pattern is loaded for the pattern load operation to take affect.
ds3181/ds3182/ds3183/DS3184 197 of 389 the following tables show how to configure the on-board bert to send and receive common patterns. table 10-38. pseudorandom pattern generation bert.pcr register bert.cr pattern type ptf[4:0] (hex) plf[4:0] (hex) pts qrss bert. pcr bert. spr2 bert. spr1 tpic, rpic 2 9 -1 o.153 (511 type) 04 08 0 0 0x0408 0xffff 0xffff 0 2 11 -1 o.152 and o.153 (2047 type) 08 0a 0 0 0x080a 0xffff 0xffff 0 2 15 -1 o.151 0d 0e 0 0 0x0d0e 0xffff 0xffff 1 2 20 -1 o.153 10 13 0 0 0x1013 0xffff 0xffff 0 2 20 -1 o.151 qrss 02 13 0 1 0x0253 0xffff 0xffff 0 2 23 -1 o.151 11 16 0 0 0x1116 0xffff 0xffff 1 table 10-39. repetiti ve pattern generation bert.pcr register pattern type ptf[4:0] (hex) plf[4:0] (hex) pts qrss bert. pcr bert. spr2 bert. spr1 all 1s na 00 1 0 0x0020 0xffff 0xffff all 0s na 00 1 0 0x0020 0xffff 0xfffe alternating 1s and 0s na 01 1 0 0x0021 0xffff 0xfffe double alternating and 0s na 03 1 0 0x0023 0xffff 0xfffc 3 in 24 na 17 1 0 0x0037 0xff20 0x0022 1 in 16 na 0f 1 0 0x002f 0xffff 0x0001 1 in 8 na 07 1 0 0x0027 0xffff 0xff01 1 in 4 na 03 1 0 0x0023 0xffff 0xfff1 after configuring these bits, the pattern must be loaded into the bert. this is accomplished via a zero-to-one transition on bert.cr .tnpl and bert.cr .rnpl. monitoring the bert requires reading the bert.sr register that contains the bit error count (bec) bit and the out of synchronization (oos) bit. the bec bit will be one when the bit error counter is one or more. the oos will be one when the receive pattern generator is not synchronized to the incoming pattern, which will occur when it receives a minimum 6 bit errors within a 64 bit window. the receive bert bit count register ( bert.rbcr1 ) and the receive bert bit error count register ( bert.rbecr1 ) will be updated upon the reception of a performance monitor update signal (e.g. bert.cr.lpmu). this signal will update the registers with the values of the counters since the last update and will reset the counters. see section 10.4.5 for more details of the pmu. 10.15.4 receive pattern detection when the receive bert is enabled it can be used as an off-line monitor. the incoming datastream flows to the receive bert as well as the cell/packet processor. if it is not desired that the datastream flows to the cell/packet processor, the user should disable the rece ive fifo by setting the fifo.rcr.rfrst bit. the receive bert receives only the payload data and synchronizes the receive pattern generator to the incoming pattern. the receive pattern generator is a 32-bit shift register that shifts data from the least significant bit (lsb) or bit 1 to the most significant bit (msb) or bit 32. the input to bit 1 is the feedback. for a prbs pattern (generating polynomial x n + x y + 1), the feedback is an xor of bit n and bit y. for a repetitive pattern (length n), the feedback is bit n. the values for n and y are individually programmable (1 to 32). the output of the receive pattern generator is the feedback. if qrss is enabled, the feedback is an xor of bits 17 and 20, and the output will be forced to one if the next 14 bits are all zeros. qrss is programmable (on or off). for prbs and qrss patterns, the feedback will
ds3181/ds3182/ds3183/DS3184 198 of 389 be forced to one if bits 1 through 31 are all zeros. depending on the type of pattern programmed, pattern detection performs either prbs synchronization or repetitive pattern synchronization. 10.15.4.1 receive prbs synchronization prbs synchronization synchronizes the receive pattern generator to the incoming prbs or qrss pattern. the receive pattern generator is synchronized by loading 32 data stream bits into the receive pattern generator, and then checking the next 32 data stream bits. synchronization is achieved if all 32 bits match the incoming pattern. if at least six incoming bits in the current 64-bit window do not match the receive pattern generator, automatic pattern re-synchronization is initiated. automatic pattern re-synchronization can be disabled. refer to figure 10-55 for the prbs synchronization diagram. figure 10-55. prbs synchronization state diagram sync load verify 1 bit error 32 bits loaded 3 2 b i t s w i t h o u t e r r o r s 6 o f 6 4 b i t s w i t h e r r o r s 10.15.4.2 receive repetitive pattern synchronization repetitive pattern synchronization synchronizes the receive pattern generator to the incoming repetitive pattern. the receive pattern generator is synchronized by searching each incoming data stream bit position for the repetitive pattern, and then checking the next 32 data stream bits. synchronization is achieved if all 32 bits match the incoming pattern. if at least six incoming bits in the current 64-bit window do not match the receive prbs pattern generator, automatic pattern re-synchronization is initiated. automatic pattern re-synchronization can be disabled. refer to figure 10-56 for the repetitive pattern synchronization state diagram.
ds3181/ds3182/ds3183/DS3184 199 of 389 figure 10-56. repetitive pattern synchronization state diagram sync match verify 1 bit error pattern matches 3 2 b i t s w i t h o u t e r r o r s 6 o f 6 4 b i t s w i t h e r r o r s 10.15.4.3 receive pattern monitoring receive pattern monitoring monitors the incoming data stream for both an oos condition and bit errors and counts the incoming bits. an out of synchronization (oos) condition is declared when the synchronization state machine is not in the ?sync? state. an oos condition is terminated when the synchronization state machine is in the ?sync? state. bit errors are determined by comparing the incoming data stream bit to the receive pattern generator output. if they do not match, a bit error is declared, and the bit error and bit counts are incremented. if they match, only the bit count is incremented. the bit count and bit error count are not incremented when an oos condition exists. 10.15.5 transmit pattern generation pattern generation generates the outgoing test pattern, and passes it onto error insertion. the transmit pattern generator is a 32-bit shift register that shifts data from the least significant bit (lsb) or bit 1 to the most significant bit (msb) or bit 32. the input to bit 1 is the feedback. for a prbs pattern (generating polynomial x n + x y + 1), the feedback is an xor of bit n and bit y. for a repetitive pattern (length n), the feedback is bit n. the values for n and y are individually programmable (1 to 32). the output of the receive pattern generator is the feedback. if qrss is enabled, the feedback is an xor of bits 17 and 20, and the output will be forced to one if the next 14 bits are all zeros. qrss is programmable (on or off). for prbs and qrss patterns, the feedback will be forced to one if bits 1 through 31 are all zeros. when a new pattern is loaded, the pattern generator is loaded with a seed/pattern value before pattern generation starts. the seed/pattern value is programmable (0 ? 2 n - 1). 10.15.5.1 transmit error insertion error insertion inserts errors into the outgoing pattern data stream. errors are inserted one at a time or at a rate of one out of every 10 n bits. the value of n is programmable (1 to 7 or off). single bit error insertion can be initiated from the microprocessor interface, or by the manual error insertion input (tmei). the method of single error insertion is programmable (register or input). if pattern inversion is enabled, the data stream is inverted before the overhead/stuff bits are inserted. pattern inversion is programmable (on or off).
ds3181/ds3182/ds3183/DS3184 200 of 389 10.16 liu ? line interface unit 10.16.1 general description the line interface units (lius) perform the functions necessary for interfacing at the physical layer to ds3, e3, or sts-1 lines. each liu has independent receive and transmit paths and a built-in jitter attenuator. refer to figure 10-57 for the location within the ds318x device of the liu. figure 10-57. liu functional diagram ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer tx cell processor tx fifo system interface rx cell processor rx fifo tx packet processor slb rx packet processor ds3/e3 receive liu tais tua1 tx frac/ plcp rx frac/ plcp clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 10.16.2 features  each port independently configurable  perform receive clock/data recovery and transmit waveshaping  jitter attenuators can be placed in either the receive or transmit paths  interface to 75  coaxial cable at lengths up to 380 meters (ds3), 440 meters (e3), or 360 meters (sts-1)  use 1:2 transformers on tx and rx  require minimal external components  local and remote loopbacks 10.16.2.1 transmitter  gapped clock capable up to 52mhz  wide 50  20% transmit clock duty cycle  clock inversion for glue-less interfacing  unframed all-ones generator (e3 ais)  line build-out (lbo) control  tri-state line driver outputs support protection switching applications  per-channel power-down control  output driver monitor 10.16.2.2 receiver  agc/equalizer block handles from 0 to 15db of cable loss  loss-of-lock (lol) pll status indication  interfaces directly to a dsx monitor signal (~20db flat loss) using built-in preamp  digital and analog loss-of-signal (los) detectors (ansi t1.231 and itu g.775)  clock inversion for glue-less interfacing  per-channel power-down control
ds3181/ds3182/ds3183/DS3184 201 of 389 10.16.3 detailed description the receiver performs clock and data recovery from an alternate mark inversion (ami) coded signal or a b3zs- or hdb3-coded ami signal and monitors for loss of the incoming signal. the transmitter drives standard pulse-shape waveforms onto 75  coaxial cable. refer to figure 10-58 for a detailed functional block diagram of the ds3/e3/sts-1 liu. the jitter attenuator can be mapped into the receiver data path, mapped into the transmitter data path, or be disabled. the ds3/e3/sts1 liu conforms to the telecommunications standards listed in table 4-1 . figure 1-1 shows the external components required for proper operation. figure 10-58. ds3/e3/sts-1 liu block diagram analog local loopback preamp clock & data recovery line driver waveshaping rxpn rxnn txpn txnn power supply squelch jitter attenuator (can be placed in either the receive path or the transmit path) driver monitor vdd vss automatic gain control + adaptive equalizer alos clkc clock rate adapter clkb clka to b3zs/hdb3 decoder from b3zs/hdb3 encoder from ds3/e3/ sts-1 line to ds3/e3/sts-1 line 10.16.4 transmitter 10.16.4.1 transmit clock the clock used in the liu transmitter is typically based on either the clad clock or tclki, selected by the cladc bit in port.cr3 . 10.16.4.2 waveshaping, line build-out, line driver the waveshaping block converts the transmit clock, positive data, and negative data signals into a single ami signal with the waveshape required for interfacing to ds3/e3/sts1 lines. table 18-8 through table 18-12 and figure 18-9 (ac timing section) show the waveform template specifications and test parameters. because ds3 and sts-1 signals must meet the waveform templates at the cross-connect through any cable length from 0 to 450ft, the waveshaping circuitry includes a selectable lbo feature. for cable lengths of 225ft or greater, the tlbo configuration bit ( port.cr2 .tlbo) should be low. when tlbo is low, output pulses are driven onto the coaxial cable without any pre-attenuation. for cable lengths less than 225ft, tlbo should be high to enable the lbo circuitry. when tlbo is high, pulses are pre-attenuated by the lbo circuitry before being driven onto the coaxial cable. the lbo circuitry provides attenuation that mimics the attenuation of 225ft of coaxial cable.
ds3181/ds3182/ds3183/DS3184 202 of 389 the transmitter line driver can be disabled and the txpn and txnn outputs tri-stated by asserting the lts configuration bit ( port.cr2 .lts). powering down the transmitter through the tpd configuration bit (cpu bus mode) also tri-states the txpn and txnn outputs. 10.16.4.3 interfacing to the line the transmitter interfaces to the outgoing ds3/e3/sts-1 coaxial cable (75  ) through a 2:1 step-down transformer connected to the txpn and txnn pins. figure 1-1 shows the arrangement of the transformer and other recommended interface components. table 10-40 specifies the required characteristics of the transformer. 10.16.4.4 transmit driver monitor if the transmit driver monitor detects a faulty transmitter, it sets the port.sr .tdm status bit. when the transmitter is tri-stated, the transmit driver monitor is also disabled. the transmitter is declared to be faulty when the transmitter outputs see a load of less than ~25  . 10.16.4.5 transmitter power-down to minimize power consumption when the transmitter is not being used, assert the port.cr1 .pd configuration bit. when the transmitter is powered down, the txpn and txnn pins are put in a high-impedance state and the transmit amplifiers are powered down. 10.16.4.6 transmitter jitter generation (intrinsic) the transmitter meets the jitter generation requirements of all applicable standards, with or without the jitter attenuator enabled. 10.16.4.7 transmitter jitter transfer without the jitter attenuator enabled in the transmit side, the transmitter passes jitter through unchanged. with the jitter attenuator enabled in the transmit side, the transmitter meets the jitter transfer requirements of all applicable telecommunication standards. see table 4-1 . 10.16.5 receiver 10.16.5.1 interfacing to the line the receiver can be transformer-coupled or capacitor-coupled to the line. typically, the receiver interfaces to the incoming coaxial cable (75  ) through a 1:2 step-up transformer. figure 1-1 shows the arrangement of the transformer and other recommended interface components. table 10-40 specifies the required characteristics of the transformer. figure 10-58 shows a general overview of the liu block. the receiver expects the incoming signal to be in b3zs- or hdb3-coded ami format. table 10-40. transformer characteristics parameter value turns ratio 1:2ct  2% bandwidth 75  0.250mhz to 500mhz (typ) primary inductance 19  h (min) leakage inductance 0.12  h (max) interwinding capacitance 10pf (max) isolation voltage 1500v rms (min)
ds3181/ds3182/ds3183/DS3184 203 of 389 table 10-41. recommended transformers manufacturer part temp range pin-package/ schematic ocl primary (  h) (min) l l (  h) (max) bandwidth 75  (mhz) pulse engineering pe-65968 0c to +70c 6 smt ls-1/c 19 0.06 0.250 to 500 pulse engineering pe-65969 0c to +70c 6 thru-hole lc-1/c 19 0.06 0.250 to 500 halo electronics tg07- 0206ns 0c to +70c 6 smt smd/b 19 0.06 0.250 to 500 halo electronics td07- 0206ne 0c to +70c 6 dip dip/b 19 0.06 0.250 to 500 note: table subject to change. industrial temperature range and multiport transformers are also available. contact the manufacturers for details at www.pulseeng.com and www.haloelectronics.com . 10.16.5.2 optional preamp the receiver can be used in monitoring applications, which typically have series resistors with a resistive loss of approximately 20db. when the port.cr2 .rmon bit is high, the receiver compensates for this resistive loss by applying flat gain to the incoming signal before sending the signal to the agc/ equalizer block. 10.16.5.3 automatic gain control (agc) and adaptive equalizer the agc circuitry applies flat (frequency independent) gain to the incoming signal to compensate for flat losses in the transmission channel and variations in transmission power. since the incoming signal also experiences frequency-dependent losses as it passes through the coaxial cable, the adaptive equalizer circuitry applies frequency-dependent gain to offset line losses and restore the signal. the agc/equalizer circuitry automatically adapts to coaxial cable losses from 0 to 15db, which translates into 0 to 380 meters (ds3), 0 to 440 meters (e3), or 0 to 360 meters (sts-1) of coaxial cable (at&t 734a or equivalent). the agc and the equalizer work simultaneously but independently to supply a signal of nominal amplitude and pulse shape to the clock and data recovery block. the agc/equalizer block automatically handles direct (0 meters) monitoring of the transmitter output signal. 10.16.5.4 clock and data recovery (cdr) the cdr block takes the amplified, equalized signal from the agc/equalizer block and produces a separate clock, positive data, and negative data signals. the cdr requires a master clock. this clock is derived from clka, clkb, or clkc depending on the clad configuration (ds3, e3, sts-1). the receive clock is locked using a clock recovery pll. the status of the pll lock is indicated in the rlol ( port.sr ) status bit. the receive loss-of-lock status bit (rlol) is set when the difference between the recovered clock frequency and the master clock frequency is greater than 7900ppm and cleared when the difference is less than 7700ppm. a change of state of the port.sr .rlol status bit can cause an interrupt on the int pin if enabled to do so by the port.srie .rlolie interrupt-enable bit. note that if the master clock is not present, or the master clock is high and tclk is not present, rlol is not set. 10.16.5.5 loss-of-signal (los) detector the receiver contains analog and digital los detectors. the analog los detector resides in the agc/equalizer block. if the incoming signal level is less than a signal level approximately 24db below nominal, analog los (alos) is declared. the alos signal cannot be directly examined, but when alos occurs the agc/equalizer mutes the recovered data, forcing all zeros out of the data recovery circuitry and causing digital los (dlos). dlos is determined by the line decoder block (see 10.14.4) and indicated by the los status bit ( line.rsr. los). alos clears when the incoming signal level is greater than or equal to a signal level approximately 18db below nominal.
ds3181/ds3182/ds3183/DS3184 204 of 389 for e3 los assertion: the alos detector in the agc/equalizer block detects that the incoming signal is less than or equal to a signal level approximately 24db below nominal, and mutes the data coming out of the clock and data recovery block. (24db below nominal in the ?tolerance range? of g.775, where los may or may not be declared.) for e3 los clear: the alos detector in the agc/equalizer block detects that the incoming signal is greater than or equal to a signal level approximately 18db below nominal, and enables data to come out of the cdr block. (18db is in the ?tolerance range? of g.775, where los may or may not be declared.) 10.16.5.6 receiver power-down to minimize power consumption when the receiver is not being used, write a one to the port.cr1 .pd bit. when the receiver is powered down, the rclko pin is tri-stated. in addition, the rxp and rxn pins become high impedance. 10.16.5.7 receiver jitter tolerance the receiver exceeds the input jitter tolerance requirements of all applicable telecommunication standards in table 4-1 . see figure 10-59 . figure 10-59. receiver jitter tolerance 10 100 1k 10k 100k 1m 60k 22.3k 2.3k 669 0.1 1.0 10 300k 800k 300 30 0.1 0.15 0.3 10 5 1.5 e3 g.823 ds3 gr-499 cat ii ds3 gr-499 cat i ds318x jitter tolerance 15 sts-1 gr253 frequency (hz) jitter tolerance (ui p-p )
ds3181/ds3182/ds3183/DS3184 205 of 389 11 overall register map the register addresses of the global, test and all four ports are concatenated to cover the address range of 000 to 7ff. the address map requires 11 bits of address, adr[10:0]. the upper address bit a[10] is decoded for the DS3184 and ds3183 devices. the upper address bit a[10] it is not used by the ds3182 and ds3181 devices and must be tied low at the pin. the register banks that are not marked with an ?x? are not writeable and read back all zeroes. bits that are underlined are read-only; all other bits are read-write. unused bits and registers marked with ??? are ignored when written to, and return zero when read. configuration registers can be written to and read from during a data path reset ( drst low, and rst high). however, all changes to these registers will be ignored during the data path reset. as a result, all initiating action requiring a ?0 to 1? transition must be re-initiated after the data path reset is released. all counters saturate at their maximum count. a counter register is updated by asserting (low to high transition) the performance monitoring update signal (rpmu). during the counter register update process, the performance monitoring status signal (rpms) will be deasserted. the counter register update process consists of loading the counter register with the current count, resetting the counter, forcing the zero count status indication low for one clock period, and then asserting rpms. no events shall be missed during an update procedure. a latched bit is set when the associated event occurs, and remains set until it is cleared. once cleared, a latched bit will not be set again until the associated event reoccurs (goes away and comes back). a latched on change bit is a latched bit that is set when the event occurs, and when it goes away. a latched status bit can be cleared using clear on read or clear on write techniques, selectable by the gl.cr1 .lsbcre bit. when clear on read is selected, the latched bits in a latched status register will be cleared after the register is read from. if the device is configured for 16-bit mode, all 16 latched status bits will be cleared. if the device is configured for 8-bit mode, only the 8 bits being accessed will be cleared. when clear on write is selected, the latched bits in a latched status register will be cleared when a logic 1 is written to that bit position. for example, writing a ffffh to a 16-bit latched status register will clear any latched status bit, whereas writing a 0001h will only clear latched bit 0 of the latched status register. reserved bits and registers are implemented in a different mode. reserved configuration bits and registers can be written and read, however they will not effect the operation of the current mode. reserved status bits will be zero. reserved latched status bits cannot be set, however, they may remain set or get set during a mode change. reserved interrupt enable bits can be written and read, and can cause an interrupt if the associated latched status bit is set. reserved counter registers and the associated counter will retain the values held before a mode change, however, the associated counter cannot be incremented. a performance monitor update will operate normally. if the data path reset is set during or after a mode change, the latched status bits and counter registers (with the associated counters) will be automatically cleared. if the data path reset is not used, then the latched status bits must be cleared via the register interface in the normal manner. and, the counter registers must be cleared by performing two performance monitor updates. the first to clear the associated counter, and load the current count into the counter register, and the second to clear the counter register.
ds3181/ds3182/ds3183/DS3184 206 of 389 table 11-1. global and test register address map address description 000 - 01f global registers, section 12.1 020 ? 02f unused 030 ? 037 utopia/pos-phy transmit system bus, section 12.3 038 - 03f utopia/pos-phy receive system bus, section 12.3.2 040 ? 1ff port 1 register map 200 ? 23f test registers 240 ? 3ff port 2 register map 400 ? 43f test registers 440 ? 5ff port 3 register map 600 ? 63f unused 640 ? 6ff port 4 register map each port has a relative address range of 040h to 1ffh. the lower 000h to 03fh address range is used for global, test and reserved registers. the following table is a map of the registers for each port. the address offset is from the start of each port range of 000h, 200h, 400h and 600h. in a ds3183, writes to registers in port 4 will be ignored and reads from port 4 registers will read back zero values. similarly, in a ds3181, writes to registers in port 2 will be ignored and reads from port 2 will read back zero values. note: the rdy signal will not go active if the user attempts to read or write unused ports or unused registers not assigned to any design blocks. the rdy signal will go active if the user writes or reads reserved registers or unused registers within design blocks. table 11-2. per-port register address map port 1 port 2 port 3 port 4 040 to 1ff 240 to 3ff 440 to 5ff 640 to 7ff address offset description 040 - 05f port common registers 060 ? 07f bert 080 ? 08b reserved 08c ? 08f b3zs/hdb3 transmit line encoder 090 ? 09f b3zs/hdb3 receive line decoder 0a0 ? 0af hdlc transmit 0b0 ? 0bf hdlc receive 0c0 ? 0cf feac transmit 0d0 ? 0df feac receive 0e0 ? 0e7 reserved 0e8 ? 0ef trail trace transmit 0f0 ? 0ff trail trace receive
ds3181/ds3182/ds3183/DS3184 207 of 389 address offset description 100 ? 117 reserved 118 ? 11f ds3/e3 framer transmit 120 ? 13f ds3/e3 framer receive 140 ? 147 ds3/e3 fractional transmit 148 ? 14f ds3/e3 fractional receive 150 ? 15f ds3/e3 plcp transmit 160 ? 17f ds3/e3 plcp receive 180 ? 18f utopia/pos-phy transmit fifo 190 ? 19f utopia/pos-phy receive fifo 1a0 ? 1bf transmit cell/packet processor 1c0 ? 1ff receive cell/packet processor
ds3181/ds3182/ds3183/DS3184 208 of 389 12 register maps and descriptions 12.1 registers bit maps note: in 8-bit mode, register bits[15:8] correspond to the upper byte, and register bits[7:0] correspond to the lower byte. for example, address 001h is the upper byte (bits [15:8]) and address 000h is the lower byte (bits [7:0]) for register gl.idr in 8-bit mode. all registers listed, including those designated unused and reserved, will cause the rdy signal to go low when written to or read from. the ??? designation indicates that the bit is not assigned. 12.1.1 global register bit map table 12-1. global register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 000 id7 id6 id5 id4 id3 id2 id1 id0 000 001 gl.idr r id15 id14 id13 id12 id11 id10 id9 id8 002 tmei meims gpm1 gpm0 pmu lsbcre rstdp rst 002 003 gl.cr1 rw gwrm intm diren -- siw1 siw0 sim1 sim0 004 -- -- -- -- clad3 clad2 clad1 clad0 004 005 gl.cr2 rw -- -- -- g8krs2 g8krs1 g8krs0 g8k0s g8kis 006- -- -- -- -- -- -- -- -- 006- 008 009 unused -- -- -- -- -- -- -- -- 00a gpio4s1 gpio4s0 gpio3s1 gpio3s0 gpio2s1 gpio2s0 gpio1s1 gpio1s0 00a 00b gl.giocr rw gpio8s1 gpio8s0 gpio7s1 gpio7s0 gpio6s1 gpio6s0 gpio5s1 gpio5s0 00c -- -- -- -- -- -- -- -- 00c 00d unused -- -- -- -- -- -- -- -- 010 pisr4 pisr3 pisr2 pisr1 -- -- tssr gsr 010 011 gl.isr r -- -- -- -- -- -- -- -- 012 pisrie4 pisrie3 pisrie2 pisrie1 -- -- tssrie gsrie 012 013 gl.isrie rw 014 -- -- -- -- -- -- clol gpms 014 015 gl.sr r -- -- -- -- -- -- -- -- 016 -- -- -- 8krefl cladl onesl cloll gpmsl 016 017 gl.srl rl -- -- -- -- -- -- -- -- 018 -- -- -- -- -- onesie clolie gpmsie 018 019 gl.srie r -- -- -- -- -- -- -- -- 01a -- -- -- -- -- -- -- -- 01a- 01e 01f unused -- -- -- -- -- -- -- -- table 12-2. system interface bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 030 -- -- -- -- tparp tflvi tsbre thect 030 031 si.tcr rw -- -- txad5 txad4 txad 3 txad2 txad1 txad0 032 -- -- -- -- -- -- tsclkal tprel 032 033 si.tsrl rl -- -- -- -- -- -- -- -- 034 -- -- -- -- -- -- -- tpreie 034 035 si.tsrie rw -- -- -- -- -- -- -- --
ds3181/ds3182/ds3183/DS3184 209 of 389 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 036 -- -- -- -- -- -- -- -- 036 037 unused -- -- -- -- -- -- -- -- 038 -- rxad2 rxad1 rxad0 rparp rflvi rsbre rhect 038 039 si.rcr1 rw -- -- -- -- -- rmdt2 rmdt1 rmdt0 03a rlbl7 rlbl6 rlbl5 rlbl4 rlbl3 rlbl2 rlbl1 rlbl0 03a 03b si.rcr2 rw -- -- rmbl5 rmbl4 rmbl3 rmbl2 rmbl1 rmbl0 03c -- -- -- -- -- -- -- rsclka 03c 03d si.rsrl rl 03e -- -- -- -- -- -- -- -- 03e 03f unused r -- -- -- -- -- -- -- -- table 12-3. port register bit map note: j and k are variable dependent upon port. port 1 port 2 port 3 port 4 j 0 2 4 6 k 1 3 5 7 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 j40 tmei meim -- pmum pmu pd rstdp rst j40 j41 port.cr1 rw nad pais2 pais1 pais0 lais1 lais0 bena hdsel j42 rcdis pmcpe fm5 fm4 fm3 fm2 fm1 fm0 j42 j43 port.cr2 rw tlen lts rmon tlbo rcdv8 lm2 lm1 lm0 j44 p8krs1 p8krs0 p8kref loopt cladc rfts tfts tlts j44 j45 port.cr3 rw -- -- rclks rsofos rpfpe tclks tsofos tpfpe j46 gpiob3 gpiob2 gpiob1 gpiob0 gpioa3 gpioa2 gpioa1 gpioa0 j46 j47 port.cr4 rw -- -- -- -- slb lbm2 lbm1 lbm0 j48 -- -- -- -- -- -- -- -- j48 j49 unused -- -- -- -- -- -- -- -- j4a tohi tohcki tsofii tnegi tposi tlcki tckoi tckii j4a j4b port.inv1 rw -- -- -- tpohsi tpohei tpohi tohsi tohei j4c rohi rohcki -- rnegi rposi rlcki rckoi -- j4c j4d portinv2 rw -- -- rfohei rpohsi -- rpohi rohsi -- j4e -- -- -- -- -- -- -- -- j4e j4f unused -- -- -- -- -- -- -- -- j50 ttsr fsr hsr bsr sfsr cpsr ppsr fmsr j50 j51 port.isr r -- -- -- -- -- -- psr lcsr j52 -- -- -- -- -- tdm rlol pms j52 j53 port.sr r -- -- -- -- -- -- -- -- j54 rlclka tclkia -- -- -- tdml rloll pmsl j54 j55 port.srl rl -- -- -- -- -- -- -- -- j56 -- -- -- -- -- tdmie rlolie pmsie j56 j57 port.srie rw -- -- -- -- -- -- -- -- j58- -- -- -- -- -- -- -- -- j58- j5e j5f unused -- -- -- -- -- -- -- --
ds3181/ds3182/ds3183/DS3184 210 of 389 table 12-4. bert register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 j60 pmum lpmu rnpl rpic mpr aprd tnpl tpic j60 j61 bert.cr rw -- -- -- -- -- -- -- -- j62 -- qrss pts plf4 plf3 plf2 plf1 plf0 j62 j63 bert.pcr rw -- -- -- ptf4 ptf3 ptf2 ptf1 ptf0 j64 bsp7 bsp6 bsp5 bsp4 bsp3 bsp2 bsp1 bsp0 j64 j65 bert.spr1 rw bsp15 bsp14 bsp13 bsp12 bsp11 bsp10 bsp9 bsp8 j66 bsp23 bsp22 bsp21 bsp20 bsp19 bsp18 bsp17 bsp16 j66 j67 bert.spr2 rw bsp31 bsp30 bsp29 bsp28 bsp27 bsp26 bsp25 bsp24 j68 -- -- teir2 teir1 teir0 bei tsei meims j68 j69 bert.teicr rw -- -- -- -- -- -- -- -- j6a -- -- -- -- -- -- -- -- j6a j6b unused -- -- -- -- -- -- -- -- j6c -- -- -- -- pms -- bec oos j6c j6d bert.sr r -- -- -- -- -- -- -- -- j6e -- -- -- -- pmsl bel becl oosl j6e j6f bert.srl rl -- -- -- -- -- -- -- -- j70 -- -- -- -- pmsie beie becie oosie j70 j71 bert.srie rw -- -- -- -- -- -- -- -- j72 -- -- -- -- -- -- -- -- j72 j73 unused -- -- -- -- -- -- -- -- j74 bec7 bec6 bec5 bec4 bec3 bec2 bec1 bec0 j74 j75 bert.rbecr1 r bec15 bec14 bec13 bec12 bec11 bec10 bec9 bec8 j76 bec23 bec22 bec21 bec20 bec19 bec18 bec17 bec16 j76 j77 bert.rbecr2 r -- -- -- -- -- -- -- -- j78 bc7 bc6 bc5 bc4 bc3 bc2 bc1 bc0 j78 j79 bert.rbcr1 r bc15 bc14 bc13 bc12 bc11 bc10 bc9 bc8 j7a bc23 bc22 bc21 bc20 bc19 bc18 bc17 bc16 j7a j7b bert.rbcr2 r bc31 bc30 bc29 bc28 bc27 bc26 bc25 bc24 j7c -- -- -- -- -- -- -- -- j7c- j7e j7f unused -- -- -- -- -- -- -- -- table 12-5. line register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 j8c -- -- -- tzsd exzi bpvi tsei meims j8c j8d line.tcr rw -- -- -- -- -- -- -- -- j8e -- -- -- -- -- -- -- -- j8e j8f unused -- -- -- -- -- -- -- -- j90 -- -- -- -- e3cve rezsf rdzsf rzsd j90 j91 line.rcr rw -- -- -- -- -- -- -- -- j92 -- -- -- -- -- -- -- -- j92 j93 unused -- -- -- -- -- -- -- -- j94 -- -- -- -- exzc -- bpvc los j94 j95 line.rsr r -- -- -- -- -- -- -- -- j96 -- -- zscdl exzl exzcl bpvl bpvcl losl j96 j97 line.rsrl rl -- -- -- -- -- -- -- -- j98 -- -- zscdie exzie exzcie bpvie bpvcie losie j98 j99 line.rsrie rw -- -- -- -- -- -- -- --
ds3181/ds3182/ds3183/DS3184 211 of 389 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 j9a -- -- -- -- -- -- -- -- j9a j9b unused -- -- -- -- -- -- -- -- j9c bpv7 bpv6 bpv5 bpv4 bpv3 bpv2 bpv1 bpv0 j9c j9d line.rbpvcr r bpv15 bpv14 bpv13 bpv12 bpv11 bpv10 bpv9 bpv8 j9e exz7 exz6 exz5 exz4 exz3 exz2 exz1 exz0 j9e j9f line.rexzcr r exz15 exz14 exz13 exz12 exz11 exz10 exz9 exz8 12.1.2 hdlc register bit map table 12-6. hdlc register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 ja0 -- tpsd tfei tifv tbre tdie tfpd tfrst ja0 ja1 hdlc.tcr rw -- -- -- tdal4 tdal3 tdal2 tdal1 tdal0 ja2 -- -- -- -- -- -- -- tdpe ja2 ja3 hdlc.tfdr rw tfd7 tfd6 tfd5 tfd4 tfd3 tfd2 tfd1 tfd0 ja4 -- -- -- -- -- tff tfe thda ja4 ja5 hdlc.tsr r -- -- tffl5 tffl4 tffl3 tffl2 tffl1 tffl0 ja6 -- -- tfol tful tpel -- tfel thdal ja6 ja7 hdlc.tsrl rl -- -- -- -- -- -- -- -- ja8 -- -- tfoie tfuie tpeie -- tfeie thdaie ja8 ja9 hdlc.tsrie rw -- -- -- -- -- -- -- -- jaa -- -- -- -- -- -- -- -- jaa- jae jaf unused -- -- -- -- -- -- -- -- jb0 -- -- -- -- rbre rdie rfpd rfrst jb0 jb1 hdlc.rcr rw -- -- -- rdal4 rdal3 rdal2 rdal1 rdal0 jb2 -- -- -- -- -- -- -- -- jb2 jb3 unused -- -- -- -- -- -- -- -- jb4 -- -- -- -- -- rff rfe rhda jb4 jb5 hdlc.rsr r -- -- -- -- -- -- -- -- jb6 rfol -- -- rpel rpsl rffl -- rhdal jb6 jb7 hdlc.rsrl rl -- -- -- -- -- -- -- -- jb8 rfoie -- -- rpeie rpsie rffie -- rhdaie jb8 jb9 hdlc.rsrie rw -- -- -- -- -- -- -- -- jba -- -- -- -- -- -- -- -- jba jbb unused -- -- -- -- -- -- -- -- jbc -- -- -- -- rps2 rps1 rps0 rfdv jbc jbd hdlc.rfdr r rfd7 rfd6 rfd5 rfd4 rfd3 rfd2 rfd1 rfd0 jbe -- -- -- -- -- -- -- -- jbe jbf unused -- -- -- -- -- -- -- -- table 12-7. feac register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 jc0 -- -- -- -- -- tfcl tfs1 tfs0 jc0 jc1 feac.tcr rw -- -- -- -- -- -- -- -- jc2 -- -- tfca5 tfca4 tfca3 tfca2 tfca1 tfca0 jc2 jc3 feac.tfdr rw -- -- tfcb5 tfcb4 tfcb3 tfcb2 tfcb1 tfcb0
ds3181/ds3182/ds3183/DS3184 212 of 389 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 jc4 -- -- -- -- -- -- -- tfi jc4 jc5 feac.tsr r -- -- -- -- -- -- -- -- jc6 -- -- -- -- -- -- -- tfil jc6 jc7 feac.tsrl rl -- -- -- -- -- -- -- -- jc8 -- -- -- -- -- -- -- tfiie jc8 jc9 feac.tsrie rw -- -- -- -- -- -- -- -- jca -- -- -- -- -- -- -- -- jca- jce jcf unused -- -- -- -- -- -- -- -- jd0 -- -- -- -- -- -- -- rfr jd0 jd1 feac.rcr rw -- -- -- -- -- -- -- -- jd2 -- -- -- -- -- -- -- -- jd2 jd3 unused -- -- -- -- -- -- -- -- jd4 -- -- -- -- rffe -- rfcd rfi jd4 jd5 feac.rsr r -- -- -- -- -- -- -- -- jd6 -- -- -- -- -- rffol rfcdl rfil jd6 jd7 feac.rsrl rl -- -- -- -- -- -- -- -- jd8 -- -- -- -- -- rffoie rfcdie rfiie jd8 jd9 feac.rsrie rw -- -- -- -- -- -- -- -- jda -- -- -- -- -- -- -- -- jda jdb unused -- -- -- -- -- -- -- -- jdc rffi -- rff5 rff4 rff3 rff2 rff1 rff0 jdc jdd feac.rfdr r -- -- -- -- -- -- -- -- jde -- -- -- -- -- -- -- -- jde jdf unused -- -- -- -- -- -- -- -- table 12-8. trail trace register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 je8 -- -- -- reserved tmad tidle tdie tbre je8 je9 tt.tcr rw -- -- -- -- -- -- -- -- jea -- -- reserved reserved ttia3 ttia2 ttia1 ttia0 jea jeb tt.ttiar r -- -- -- -- -- -- -- -- jec ttd7 ttd6 ttd5 ttd4 ttd3 ttd2 ttd1 ttd0 jec jed tt.tir r -- -- -- -- -- -- -- -- jee -- -- -- -- -- -- -- -- jee jef unused -- -- -- -- -- -- -- -- jf0 -- -- reserved reserved rmad retce rdie rbre jf0 jf1 tt.rcr rw -- -- -- -- -- -- -- -- jf2 -- -- reserved reserved rtia3 rtia2 rtia1 rtia0 jf2 jf3 tt.rtiar r -- -- reserved reserved etia3 etia2 etia1 etia0 jf4 -- -- -- -- -- rtim rtiu ridl jf4 jf5 tt.rsr r -- -- -- -- -- -- -- -- jf6 -- -- -- -- rticl rtiml rtiul ridll jf6 jf7 tt.rsrl rl -- -- -- -- -- -- -- -- jf8 -- -- -- -- rticie rtimie rtiuie ridlie jf8 jf9 tt.rsrie rw -- -- -- -- -- -- -- -- jfa -- -- -- -- -- -- -- -- jfa jfb unused -- -- -- -- -- -- -- --
ds3181/ds3182/ds3183/DS3184 213 of 389 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 jfc rtd7 rtd6 rtd5 rtd4 rtd3 rtd2 rtd1 rtd0 jfc jfd tt.rir r -- -- -- -- -- -- -- -- jfe etd7 etd6 etd5 etd4 etd3 etd2 etd1 etd0 jfe jff tt.eir r -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- k00- k16 k00- k117 reserved -- -- -- -- -- -- -- -- 12.1.3 t3 register bit map table 12-9. t3 register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k18 -- -- tfebe afebed trdi ardid tfgd tais k18 k19 t3.tcr rw -- -- -- pbge tidle cbgd -- -- k1a reserved cpeie pei feic1 feic0 fei tsei meims k1a k1b t3.teir rw -- -- -- -- ccpeie cpei cfbeie fbei k1c -- -- -- -- -- -- -- -- k1c- k1e k1f reserved -- -- -- -- -- -- -- -- k20 raile raild raiod raiad romd lip1 lip0 frsync k20 k21 t3.rcr rw -- covhd maod mdaisi aaisd ecc fecc1 fecc0 k22 -- -- -- -- -- -- -- -- k22 k23 reserved -- -- -- -- -- -- -- -- k24 oomf sef -- lof rai ais oof los k24 k25 t3.rsr1 r reserved reserved -- reserved t3fm aic idle rua1 k26 -- -- -- -- cpec fbec pec fec k26 k27 t3.rsr2 r -- -- -- -- -- -- -- -- k28 oomfl sefl cofal lofl rail aisl oofl losl k28 k29 t3.rsrl1 rl reserved reserved reserved reserved t3fml aicl idlel rua1l k2a -- -- -- -- cpecl fbecl pecl fecl k2a k2b t3.rsrl2 rl -- -- -- -- cpel fbel pel fel k2c oomfie sefie cofaie lofie raiie aisie oofie losie k2c k2d t3.rsrie1 rw reserved reserved reserved reserv ed t3fmie aicie idleie rua1ie k2e -- -- -- -- cpecie fbecie pecie fecie k2e k2f t3.rsrie2 rw -- -- -- -- cpeie fbeie peie feie k30 -- -- -- -- -- -- -- -- k30- k32 k33 reserved -- -- -- -- -- -- -- -- k34 fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 k34 k35 t3.rfecr r fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 k36 pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 k36 k37 t3.rpecr r pe15 pe14 pe13 pe12 pe11 pe10 pe9 pe8 k38 fbe7 fbe6 fbe5 fbe4 fbe3 fbe2 fbe1 fbe0 k38 k39 t3.rfbecr r fbe15 fbe14 fbe13 fbe12 fbe11 fbe10 fbe9 fbe8 k3a cpe7 cpe6 cpe5 cpe4 cpe3 cpe2 cpe1 cpe0 k3a k3b t3.rcpecr r cpe15 cpe14 cpe13 cpe12 cpe11 cpe10 cpe9 cpe8 k3c -- -- -- -- -- -- -- -- k3c- k3e k3f unused -- -- -- -- -- -- -- --
ds3181/ds3182/ds3183/DS3184 214 of 389 12.1.4 e3 g.751 register bit map table 12-10. e3 g.751 register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k18 -- -- reserved reserved tabc1 tabc0 tfgd tais k18 k19 e3g751.tcr rw reserved -- -- reserved reserved reserved tnbc1 tnbc0 k1a reserved reserved reserved feic1 feic0 fei tsei meims k1a k1b e3g751.teir rw -- -- -- -- reserved reserved reserved reserved k1c -- -- -- -- -- -- -- -- k1c- k1e k1f reserved -- -- -- -- -- -- -- -- k20 raile raild raiod raiad romd lip1 lip0 frsync k20 k21 e3g751.rcr rw reserved reserved dls mdaisi aaisd ecc fecc1 fecc0 k22 -- -- -- -- -- -- -- -- k22 k23 reserved -- -- -- -- -- -- -- -- k24 rab rnb -- lof rai ais oof los k24 k25 e3g751.rsr1 r reserved reserved -- reserved reserved reserved reserved rua1 k26 -- -- -- -- reserved reserved reserved fec k26 k27 e3g751.rsr2 r -- -- -- -- -- -- -- -- k28 acl ncl cofal lofl rail aisl oofl losl k28 k29 e3g751.rsrl1 rl reserved reserved reserved reserved reserved reserved reserved rua1l k2a -- -- -- -- reserved reserved reserved fecl k2a k2b e3g751.rsrl2 rl -- -- -- -- reserved reserved reserved fel k2c acie ncie cofaie lofie raiie aisie oofie losie k2c k2d e3g751.rsrie1 rw reserved reserved reserved reserved reserved reserved reserved rua1ie k2e -- -- -- -- reserved reserved reserved fecie k2e k2f e3g751.rsrie2 rw -- -- -- -- reserved reserved reserved feie k30 -- -- -- -- -- -- -- -- k30- k32 k33 reserved -- -- -- -- -- -- -- -- k34 fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 k34 k35 e3g751.rfecr r fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 k36- -- -- -- -- -- -- -- -- k36- k3a k3b reserved -- -- -- -- -- -- -- -- k3c- -- -- -- -- -- -- -- -- k3c- k3e k3f unused -- -- -- -- -- -- -- -- 12.1.5 e3 g.832 register bit map table 12-11. e3 g.832 register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k18 -- -- tfebe afebed trdi ardid tfgd tais k18 k19 e3g832.tcr rw reserved -- -- reserved reserved tgcc tnrc1 tnrc0 k1a reserved reserved reserved feic1 feic0 fei tsei meims k1a k1b e3g832.teir rw -- -- -- -- reserved reserved reserved reserved k1c tpt2 tpt1 tpt0 ttigd tti3 tti2 tti1 tti0 k1c k1d e3g832.tmab r rw -- -- -- -- -- -- -- -- k1e tnr7 tnr6 tnr5 tnr4 tnr3 tnr2 tnr1 tnr0 k1e k1f e3g832.tngb r rw tgc7 tgc6 tgc5 tgc4 tgc3 tgc2 tgc1 tgc0 k20 rdile rdild rdiod rdiad romd lip1 lip0 frsync k20 k21 e3g832.rcr rw reserved pec dls mdaisi aaisd ecc fecc1 fecc0
ds3181/ds3182/ds3183/DS3184 215 of 389 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k22 -- -- -- -- ept2 ept1 ept0 tied k22 k23 e3g832.rmacr rw -- -- -- -- -- -- -- -- k24 reserved reserved -- lof rai ais oof los k24 k25 e3g832.rsr1 r reserved tiu -- rptu rptm reserved reserved rua1 k26 -- -- -- -- reserved fbec pec fec k26 k27 e3g832.rsr2 r -- -- -- -- -- -- -- -- k28 gcl nrl cofal lofl rail aisl oofl losl k28 k29 e3g832.rsrl1 rl reserved tiul til rptul rptml rptl reserved rua1l k2a -- -- -- -- reserved fbecl pecl fecl k2a k2b e3g832.rsrl2 rl -- -- -- -- reserved fbel pel fel k2c gcie nrie cofaie lofie raiie aisie oofie losie k2c k2d e3g832.rsrie1 rw reserved -- tiie rptuie rptmie rptie reserved rua1ie k2e -- -- -- -- reserved fbecie pecie fecie k2e k2f e3g832.rsrie2 rw -- -- -- -- reserved fbeie peie feie k30 -- rpt2 rpt1 rpt0 ti3 ti2 ti1 ti0 k30 k31 e3g832.rmabr r -- -- -- -- -- -- -- -- k32 rnr7 rnr6 rnr5 rnr4 rnr3 rnr2 rnr1 rnr0 k32 k33 e3g832.rngbr r rgc7 rgc6 rgc5 rgc4 rgc3 rgc2 rgc1 rgc0 k34 fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 k34 k35 e3g832.rfecr r fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 k36 pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 k36 k37 e3g832.rpecr r pe15 pe14 pe13 pe12 pe11 pe10 pe9 pe8 k38 fbe7 fbe6 fbe5 fbe4 fbe3 fbe2 fbe1 fbe0 k38 k39 e3g832.rfber r fbe15 fbe14 fbe13 fbe12 fbe11 fbe10 fbe9 fbe8 k3a -- -- -- -- -- -- -- -- k3a k3b reserved -- -- -- -- -- -- -- -- k3c- -- -- -- -- -- -- -- -- k3c- k3e k3f unused -- -- -- -- -- -- -- -- 12.1.6 clear-channel register bit map table 12-12. clear-channel register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k18 -- -- reserved reserved reserved reserved reserved tais k18 k19 cc.tcr rw reserved -- -- reserved reserved reserved reserved reserved k1a -- -- -- -- -- -- -- -- k1a- k1e k1f reserved -- -- -- -- -- -- -- -- k20 reserved reserved reserved reserved reserved reserved reserved reserved k20 k21 cc.rcr rw reserved reserved reserved mdaisi aaisd reserved reserved reserved k22 -- -- -- -- -- -- -- -- k22 k23 reserved -- -- -- -- -- -- -- -- k24 reserved reserved -- reserved reserved reserved reserved los k24 k25 cc.rsr1 r reserved reserved -- reserved reserved reserved reserved rua1 k26 -- -- -- -- -- -- -- -- k26 k27 reserved -- -- -- -- -- -- -- -- k28 reserved reserved reserved reserved reserved reserved reserved losl k28 k29 cc.rsrl1 rl reserved reserved reserved reserved reserved reserved reserved rua1l k2a -- -- -- -- -- -- -- -- k2a k2b reserved -- -- -- -- -- -- -- --
ds3181/ds3182/ds3183/DS3184 216 of 389 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k2c reserved reserved reserved reserved reserved reserved reserved losie k2c k2d cc.rsrie1 rw reserved reserved reserved reserved reserved reserved reserved rua1ie k2e- -- -- -- -- -- -- -- -- k2e- k3a k3b reserved -- -- -- -- -- -- -- -- k3c- -- -- -- -- -- -- -- -- k3c- k3e k3f unused -- -- -- -- -- -- -- -- 12.1.7 fractional register bit map table 12-13. fractional register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k40 -- -- -- -- -- tfosc1 tfosc0 tsass k40 k41 frac.tcr rw -- -- -- -- -- -- -- -- k42 tdgs7 tdgs6 tdgs5 tdgs4 tdgs3 tdgs2 tdgs1 tdgs0 k42 k43 frac.tdgsr rw -- -- -- tdgs12 tdgs11 tdgs10 tdgs9 tdgs8 k44 tsas7 tsas6 tsas5 tsas4 tsas3 tsas2 tsas1 tsas0 k44 k45 frac.tsasr rw -- -- -- tsas12 tsas11 tsas10 tsas9 tsas8 k46 -- -- -- -- -- -- -- -- k46 k47 unused -- -- -- -- -- -- -- -- k48 -- -- -- -- -- -- -- rsass k48 k49 frac.rcr rw -- -- -- -- -- -- -- -- k4a rdgs7 rdgs6 rdgs5 rdgs4 rdgs3 rdgs2 rdgs1 rdgs0 k4a k4b frac.rdgsr rw -- -- -- rdgs12 rdgs11 rdgs10 rdgs9 rdgs8 k4c rsas7 rsas6 rsas5 rsas4 rsas3 rsas2 rsas1 rsas0 k4c k4d frac.rsasr rw -- -- -- rsas12 rsas11 rsas10 rsas9 rsas8 k4e -- -- -- -- -- -- -- -- k4e k4f unused -- -- -- -- -- -- -- -- table 12-14. plcp register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k50 -- -- -- tmc1 tmc0 tf1c1 tf1c0 areid k50 k51 plcp.tcr rw -- -- -- -- -- -- -- -- k52 -- -- fee feic1 feic0 fei tsei meims k52 k53 plcp.teir rw -- -- reime creiie reiei pbee cpeie pei k54 trei3 trei2 trei1 trei0 trai tlss2 tlss1 tlss0 k54 k55 plcp.tfgbr rw tf17 tf16 tf15 tf14 tf13 tf12 tf11 tf10 k56 tm17 tm16 tm15 tm14 tm13 tm12 tm11 tm10 k56 k57 plcp.tm12br rw tm27 tm26 tm25 tm24 tm23 tm22 tm21 tm20 k58 tz17 tz16 tz15 tz14 tz13 tz12 tz11 tz10 k58 k59 plcp.tz12br rw tz27 tz26 tz25 tz24 tz23 tz22 tz21 tz20 k5a tz37 tz36 tz35 tz34 tz33 tz32 tz31 tz30 k5a k5b plcp.tz34br rw tz47 tz46 tz45 tz44 tz43 tz42 tz41 tz40 k5c tz57 tz56 tz55 tz54 tz53 tz52 tz51 tz50 k5c k5d plcp.tz56br rw tz67 tz66 tz65 tz64 tz63 tz62 tz61 tz60 k5e -- -- -- -- -- -- -- -- k5e k5f unused -- -- -- -- -- -- -- --
ds3181/ds3182/ds3183/DS3184 217 of 389 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k60 -- rlie -- pecc fepd fecc ecc frsync k60 k61 plcp.rcr rw -- -- -- -- -- -- rhsc1 rhsc0 k62 -- -- -- -- -- -- -- -- k62 k63 unused -- -- -- -- -- -- -- -- k64 -- -- reic pec fec rai -- oof k64 k65 plcp.rsr1 r -- -- -- -- -- -- -- lof k66 -- -- -- -- -- -- -- lssu k66 k67 plcp.rsr2 r -- -- -- -- -- -- -- -- k68 -- -- reicl pecl fecl rail cofal oofl k68 k69 plcp.rsrl1 rl -- -- reil pel fel -- -- lofl k6a rz3l rz2l rz1l rm2l rm1l rf1l lssl lssul k6a k6b plcp.rsrl2 rl -- -- -- -- -- rz6l rz5l rz4l k6c -- -- reicie pecie fe cie raiie cofaie oofie k6c k6d plcp.rsrie1 rw -- -- reiie peie feie -- -- lofie k6e rz3ie rz2ie rz1ie rm2ie rm1ie rf1ie lssie lssuie k6e k6f plcp.rsrie2 rw -- -- -- -- -- rz6ie rz5ie rz4ie k70 fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 k70 k71 plcp.rfecr r fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 k72 pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 k72 k73 plcp.rpecr r pe15 pe14 pe13 pe12 pe11 pe10 pe9 pe8 k74 rei7 rei6 rei5 rei4 rei3 rei2 rei1 rei0 k74 k75 plcp.rreicr r rei15 rei14 rei13 rei12 rei11 rei10 rei9 rei8 k76 -- -- -- -- -- lss2 lss1 lss0 k76 k77 plcp.rfgbr r rf17 rf16 rf15 rf14 rf13 rf12 rf11 rf10 k78 rm17 rm16 rm15 rm14 rm13 rm12 rm11 rm10 k78 k79 plcp.rm12br r rm27 rm26 rm25 rm24 rm23 rm22 rm21 rm20 k7a rz17 rz16 rz15 rz14 rz13 rz12 rz11 rz10 k7a k7b plcp.rz12br r rz27 rz26 rz25 rz24 rz23 rz22 rz21 rz20 k7c rz37 rz36 rz35 rz34 rz33 rz32 rz31 rz30 k7c k7d plcp.rz34br r rz47 rz46 rz45 rz44 rz43 rz42 rz41 rz40 k7e rz57 rz56 rz55 rz54 rz53 rz52 rz51 rz50 k7e k7f plcp.rz56br r rz67 rz66 rz65 rz64 rz63 rz62 rz61 rz60 table 12-15. fifo register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k80 -- -- -- -- -- -- -- tfrst k80 k81 ff.tcr rw -- -- -- -- -- -- -- -- k82 -- -- tfaf5 tfaf4 tfaf3 tfaf2 tfaf1 tfaf0 k82 k83 ff.tlcr rw -- -- tfae5 tfae4 tfae3 tfae2 tfae1 tfae0 k84 -- -- -- tpa4 tpa3 tpa2 tpa1 tpa0 k84 k85 ff.tpac rw -- -- -- -- -- -- -- -- k86 -- -- -- -- -- -- -- -- k86 k87 unused -- -- -- -- -- -- -- -- k88 -- -- -- tfatl tfstl tfitl tful tfol k88 k89 ff.tsrl rl -- -- -- -- -- -- -- -- k8a -- -- -- tfatie tfstie tfitie tfuie tfoie k8a k8b ff.tsrie rw -- -- -- -- -- -- -- -- k8c -- -- -- -- -- -- -- -- k8c- k8f k8f unused -- -- -- -- -- -- -- --
ds3181/ds3182/ds3183/DS3184 218 of 389 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 k90 -- -- -- -- -- -- -- rfrst k90 k91 ff.rcr rw -- -- -- -- -- -- -- -- k92 -- -- rfaf5 rfaf4 rfaf 3 rfaf2 rfaf1 rfaf0 k92 k93 ff.rlcr rw -- -- rfae5 rfae4 rfae3 rfae2 rfae1 rfae0 k94 -- -- -- rpa4 rpa3 rpa2 rpa1 rpa0 k94 k95 ff.rfpac rw -- -- -- -- -- -- -- -- k96 -- -- -- -- -- -- -- -- k96 k97 unused -- -- -- -- -- -- -- -- k98 -- -- -- -- -- -- -- rfol k98 k99 ff.rsrl rl -- -- -- -- -- -- -- -- k9a -- -- -- -- -- -- -- rfoie k9a k9b ff.rsrie rw -- -- -- -- -- -- -- -- k9c -- -- -- -- -- -- -- -- k9c- k9f k9f unused -- -- -- -- -- -- -- -- 12.1.8 transmit cell processor bit map table 12-16. transmit cell processor register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 ka0 -- -- tfch tfcp thse tsd tbre tpte ka0 ka1 cp.tcr rw -- -- -- -- tdse tdhe thpe tcpad ka2 -- -- -- -- -- -- -- -- ka2 ka3 reserved -- -- -- -- -- -- -- -- ka4 tcen7 tcen6 tcen5 tcen4 tcen3 tcen2 tcen1 tcen0 ka4 ka5 cp.tecc rw meims tcer6 tcer5 tcer4 tcer3 tcer2 tcer1 tcer0 ka6 them7 them6 them5 them4 them3 them2 them1 them0 ka6 ka7 cp.thmrc rw -- -- -- -- -- -- -- -- kaa thp7 thp6 thp5 thp4 thp3 thp2 thp1 thp0 kaa ka9 cp.thpc1 rw thp15 thp14 thp13 thp12 thp11 thp10 thp9 thp8 kaa thp23 thp22 thp21 thp20 thp19 thp18 thp17 thp16 kaa kab cp.thpc2 rw thp31 thp30 thp29 thp28 thp27 thp26 thp25 thp24 kac tfpp7 tfpp6 tfpp5 tfpp4 tfpp3 tfpp2 tfpp1 tfpp0 kac kad cp.tfppc rw -- -- -- -- -- -- -- -- kae -- -- -- -- -- -- -- tecf kae kaf cp.tsr r -- -- -- -- -- -- -- -- kb0 -- -- -- -- -- -- -- tecfl kb0 kb1 cp.tsrl rl -- -- -- -- -- -- -- -- kb2 -- -- -- -- -- -- -- tecfie kb2 kb3 cp.tsrie rw -- -- -- -- -- -- -- -- kb4 tcc7 tcc6 tcc5 tcc4 tcc3 tcc2 tcc1 tcc0 kb4 kb5 cp.tccr1 r tcc15 tcc14 tcc13 tcc12 tcc11 tcc10 tcc9 tcc8 kb6 tcc23 tcc22 tcc21 tcc20 tcc19 tcc18 tcc17 tcc16 kb6 kb7 cp.tccr2 r -- -- -- -- -- -- -- -- kb8- -- -- -- -- -- -- -- -- kb8- kbe kbf reserved -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- kbc- kbe kbc- kbf unused -- -- -- -- -- -- -- --
ds3181/ds3182/ds3183/DS3184 219 of 389 12.1.9 transmit packet processor bit map table 12-17. transmit packet processor register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 ka0 -- -- tfad tf16 tifv tsd tbre tpte ka0 ka1 pp.tcr rw -- -- -- -- res res res res ka2 tifg7 tifg6 tifg5 tifg4 tifg3 tifg2 tifg1 tifg0 ka2 ka3 pp.tifgc rw -- -- -- -- -- -- -- -- ka4 tpen7 tpen6 tpen5 tpen4 tpen3 tpen2 tpen1 tpen0 ka4 ka5 pp.tepc rw meims tper6 tper5 tper4 tper3 tper2 tper1 tper0 ka6- -- -- -- -- -- -- -- -- ka6- kac kad reserved -- -- -- -- -- -- -- -- kae -- -- -- -- -- -- -- tepf kae kaf pp.tsr r -- -- -- -- -- -- -- -- kb0 -- -- -- -- -- -- -- tepfl kb0 kb1 pp.tsrl rl -- -- -- -- -- -- -- -- kb2 -- -- -- -- -- -- -- tepfie kb2 kb3 pp.tsrie rw -- -- -- -- -- -- -- -- kb4 tpc7 tpc6 tpc5 tpc4 tpc3 tpc2 tpc1 tpc0 kb4 kb5 pp.tpcr1 r tpc15 tpc14 tpc13 tpc12 tpc11 tpc10 tpc9 tpc8 kb6 tpc23 tpc22 tpc21 tpc20 tpc19 tpc18 tpc17 tpc16 kb6 kb7 pp.tpcr2 r -- -- -- -- -- -- -- -- kb8 tbc7 tbc6 tbc5 tbc4 tbc3 tbc2 tbc1 tbc0 kb8 kb9 pp.tbcr1 r tbc15 tbc14 tbc13 tbc12 tbc11 tbc10 tbc9 tbc8 kba tbc23 tbc22 tbc21 tbc20 tbc19 tbc18 tbc17 tbc16 kba kbb pp.tbcr2 r tbc31 tbc30 tbc29 tbc28 tbc27 tbc26 tbc25 tbc24 kbc- -- -- -- -- -- -- -- -- kbc- kbe kbf reserved -- -- -- -- -- -- -- -- table 12-18. receive cell processor register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 kc0 rroc1 rroc0 rcpad rhecd rhde rdd rbre rpte kc0 kc1 cp.rcr1 rw rdde rdhe reced rhpm1 rhp m0 ricfd rucfe ricfe kc2 -- -- -- -- -- -- -- -- kc2 kc3 reserved -- -- -- -- -- -- -- -- kc4 rhp7 rhp6 rhp5 rhp4 rhp3 rhp2 rhp1 rhp0 kc4 kc5 cp.rhpc1 rw rhp15 rhp14 rhp13 rhp12 rhp11 rhp10 rhp9 rhp8 kc6 rhp23 rhp22 rhp21 rhp20 rhp19 rhp18 rhp17 rhp16 kc6 kc7 cp.rhpc2 rw rhp31 rhp30 rhp29 rhp28 rhp27 rhp26 rhp25 rhp24 kc8 rhpd7 rhpd6 rhpd5 rhpd4 rhpd3 rhpd2 rhpd1 rhpd0 kc8 kc9 cp.rhpmc1 rw rhpd15 rhpd14 rhpd13 rhpd12 rhpd11 rhpd10 rhpd9 rhpd8 kca rhpd23 rhpd22 rhpd21 rhpd20 rhpd19 rhpd18 rhpd17 rhpd16 kca kcb cp.rhpmc2 rw rhpd31 rhpd30 rhpd29 rhpd28 rhpd27 rhpd26 rhpd25 rhpd24 kcc rlt7 rlt6 rlt5 rlt4 rlt3 rlt2 rlt1 rlt0 kcc kcd cp.rltc rw rlt15 rlt14 rlt13 rlt12 rlt11 rlt10 rlt9 rlt8 kce -- -- -- -- -- recc rhpc rchc kce kcf cp.rsr r -- -- -- -- oos -- ocd lcd kd0 recl rchl ridl rudl rivdl reccl rhpcl rchcl kd0 kd1 cp.rsrl rl -- -- -- -- oosl cocdl ocdcl lcdcl
ds3181/ds3182/ds3183/DS3184 220 of 389 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 kd2 recie rchie ridie rudie ri vdie reccie rhpcie rchcie kd2 kd3 cp.rsrie rw -- -- -- -- oosie cocdie ocdcie lcdcie kd4 rcc7 rcc6 rcc5 rcc4 rcc3 rcc2 rcc1 rcc0 kd4 kd5 cp.rccr1 r rcc15 rcc14 rcc13 rcc12 rcc11 rcc10 rcc9 rcc8 kd6 rcc23 rcc22 rcc21 rcc20 rcc19 rcc18 rcc17 rcc16 kd6 kd7 cp.rccr2 r -- -- -- -- -- -- -- -- kd8 recc7 recc6 recc5 recc4 recc3 recc2 recc1 recc0 kd8 kd9 cp.reccr1 r recc15 recc14 recc13 recc12 recc11 recc10 recc9 recc8 kda recc23 recc22 recc21 recc20 recc19 recc18 recc17 recc16 kda kdb cp.reccr2 r -- -- -- -- -- -- -- -- kdc rhpc7 rhpc6 rhpc5 rhpc4 rhpc3 rhpc2 rhpc1 rhpc0 kdc kdd cp.rhpcr1 r rhpc15 rhpc14 rhpc13 rhpc12 rhpc11 rhpc10 rhpc9 rhpc8 kde -- -- -- -- -- -- -- -- kde kdf cp.rhpcr2 r rhpc23 rhpc22 rhpc21 rhpc20 rhpc19 rhpc18 rhpc17 rhpc16 ke0 rchc7 rchc6 rchc5 rchc4 rchc3 rchc2 rchc1 rchc0 ke0 ke1 cp.rcccr1 r rchc15 rchc14 rchc13 rchc12 rchc11 rchc10 rchc9 rchc8 ke2 rchc23 rchc22 rchc21 rchc20 rchc19 rchc18 rchc17 rchc16 ke2 ke3 cp.rcccr2 r -- -- -- -- -- -- -- -- ke4 rfcc7 rfcc6 rfcc5 rfcc4 rfcc3 rfcc2 rfcc1 rfcc0 ke4 ke5 cp.rfccr1 r rfcc15 rfcc14 rfcc13 rfcc12 rfcc11 rfcc10 rfcc9 rfcc8 ke6 rfcc23 rfcc22 rfcc21 rfcc20 rfcc19 rfcc18 rfcc17 rfcc16 ke6 ke7 cp.rfccr2 r -- -- -- -- -- -- -- -- ke8- -- -- -- -- -- -- -- -- ke8- kee kef reserved -- -- -- -- -- -- -- -- kf0- -- -- -- -- -- -- -- -- kf0- kfe kff unused -- -- -- -- -- -- -- -- table 12-19. receive packet processor register bit map address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 kc0 reserved reserved rfpd rf16 rfed rdd rbre rpte kc0 kc1 pp.rcr rw rmns7 rmns6 rmns5 rmns4 rmns3 rmns2 rmns1 rmns0 kc2 rmx7 rmx6 rmx5 rmx4 rmx3 rmx2 rmx1 rmx0 kc2 kc3 pp.rmpsc rw rmx15 rmx14 rmx13 rmx12 rmx11 rmx10 rmx9 rmx8 kc4- -- -- -- -- -- -- -- -- kc4- kcc kcd reserved -- -- -- -- -- -- -- -- kce -- -- -- -- -- repc rapc rspc kce kcf pp.rsr r -- -- -- -- reserved reserved reserved reserved kd0 repl rapl ripdl rspdl rlpdl repcl rapcl rspcl kd0 kd1 pp.rsrl rl -- -- -- -- reserved reserved reserved reserved kd2 repie rapie ripdie rspdie rlpdie repcie rapcie rspcie kd2 kd3 pp.rsrie rw -- -- -- -- reserved reserved reserved reserved kd4 rpc7 rpc6 rpc5 rpc4 rpc3 rpc2 rpc1 rpc0 kd4 kd5 pp.rpcr1 r rpc15 rpc14 rpc13 rpc12 rpc11 rpc10 rpc9 rpc8 kd6 rpc23 rpc22 rpc21 rpc20 rpc19 rpc18 rpc17 rpc16 kd6 kd7 pp.rpcr2 r -- -- -- -- -- -- -- -- kd8 rfpc7 rfpc6 rfpc5 rfpc4 rfpc3 rfpc2 rfpc1 rfpc0 kd8 kd9 pp.rfpcr1 r rfpc15 rfpc14 rfpc13 rfpc12 rfpc11 rfpc10 rfpc9 rfpc8 kda rfpc23 rfpc22 rfpc21 rfpc20 rfpc19 rfpc18 rfpc17 rfpc16 kda kdb pp.rfpcr2 r -- -- -- -- -- -- -- --
ds3181/ds3182/ds3183/DS3184 221 of 389 address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit register type bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 kdc rapc7 rapc6 rapc5 rapc4 rapc3 rapc2 rapc1 rapc0 kdc kdd pp.rapcr1 r rapc15 rapc14 rapc13 rapc12 rapc11 rapc10 rapc9 rapc8 kde rapc23 rapc22 rapc21 rapc20 rapc19 rapc18 rapc17 rapc16 kde kdf pp.rapcr2 r -- -- -- -- -- -- -- -- ke0 rspc7 rspc6 rspc5 rspc4 rspc3 rspc2 rspc1 rspc0 ke0 ke1 pp.rspcr1 r rspc15 rspc14 rspc13 rspc12 rspc11 rspc10 rspc9 rspc8 ke2 rspc23 rspc22 rspc21 rspc20 rspc19 rspc18 rspc17 rspc16 ke2 ke3 pp.rspcr2 r -- -- -- -- -- -- -- -- ke4 -- -- -- -- -- -- -- -- ke4- ke6 ke7 reserved -- -- -- -- -- -- -- -- ke8 rbc7 rbc6 rbc5 rbc4 rbc3 rbc2 rbc1 rbc0 ke8 ke9 pp.rbcr1 r rbc15 rbc14 rbc13 rbc12 rbc11 rbc10 rbc9 rbc8 kea rbc23 rbc22 rbc21 rbc20 rbc19 rbc18 rbc17 rbc16 kea keb pp.rbcr2 r rbc31 rbc30 rbc29 rbc28 rbc27 rbc26 rbc25 rbc24 kec rebc7 rebc6 rebc5 rebc4 rebc3 rebc2 rebc1 rebc0 kec ked pp.rebcr1 r rebc15 rebc14 rebc13 rebc12 rebc11 rebc10 rebc9 rebc8 kee rebc23 rebc22 rebc21 rebc20 rebc19 rebc18 rebc17 rebc16 kee kef pp.rebcr2 r rebc31 rebc30 rebc29 rebc28 rebc27 rebc26 rebc25 rebc24 kf0- -- -- -- -- -- -- -- -- kf0- kfe kff unused -- -- -- -- -- -- -- -- bits that are underlined are read-only; all other bits are read-write. 12.2 global registers table 12-20. global register map address register register description 000h gl.idr global id register 002h gl.cr1 global control register 1 004h gl.cr2 global control register 2 006h -- unused 008h -- unused 00ah gl.giocr global general-purpose io control register 00ch -- unused 00eh -- unused 010h gl.isr global interrupt status register 012h gl.isrie global interrupt enable register 014h gl.sr global status register 016h gl.srl global status register latched 018h gl.srie global status register interrupt enable 01ah -- unused 01ch gl.giorr global general-purpose io read register 01eh -- unused
ds3181/ds3182/ds3183/DS3184 222 of 389 12.2.1 register bit descriptions register name: gl.idr register description: global id register register address: 000h bit # 15 14 13 12 11 10 9 8 name id15 id14 id13 id12 id11 id10 id9 id8 bit # 7 6 5 4 3 2 1 0 name id7 id6 id5 id4 id3 id2 id1 id0 bits 15 to 12: device rev id bits 15 to 12 (id15 to id12). these bits of the device id register has same information as the four bits of jtag rev id portion of the jtag id register. jtag id[31:28]. bits 11 to 0: device code id bits 11 to 0 (id11 to id0). these bits of the device code id register has same information as the lower 12 bits of jtag code id portion of the jtag id register. jtag id[23:12]. register name: gl.cr1 register description: global control register 1 register address: 002h bit # 15 14 13 12 11 10 9 8 name gwrm intm diren -- siw1 siw0 sim1 sim0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tmei meims gpm1 gpm0 pmu lsbcre rstdp rst default 0 0 0 0 0 0 1 0 bit 15: global write mode (gwrm) this bit enables the global write mode. when this bit is set, a write to the register of any port will write to the same register in all the ports. reading the registers of any port is not supported and will read back undefined data. 0 = normal write mode 1 = global write mode bit 14: int pin mode (intm) this bit determines the inactive mode of the int pin. the int pin always drives low when active. 0 = pin is high impedance when not active 1 = pin drives high when not active bit 13: direct status enable (diren) this bit selects between the direct status and polled status modes for utopia and pos-phy. 0 = polled status mode 1 = direct status mode
ds3181/ds3182/ds3183/DS3184 223 of 389 bits 11 and 10: system interface bus width (siw[1:0]) these bits configure the system bus width. 00 = 8-bit 01 = 16-bit 1x = 32-bit bits 9 and 8: system interface mode (sim[1:0]) these bits configure the system bus mode. 00 = utopia l2 01 = utopia l3 10 = pos-phy l2 11 = pos-phy l3 or spi-3 bit 7: transmit manual error insert (tmei) this bit is used insert an error in all ports and error insertion logic configured for global error insertion. an error(s) is inserted at the next opportunity when this bit transitions from low to high. the gl.cr1 .meims bit must be clear for this bit to operate. bit 6: transmit manual error insert select (meims) this bit is used to select the source of the global manual error insertion signal 0 = global error insertion using tmei bit 1 = global error insertion using the gpio6 pin bits 5 and 4: global performance monitor update mode (gpm[1:0]) these bits select the global performance monitor register update mode. 00 = global pm update using the pmu bit 01 = global pm update using the gpio8 pin 1x = one second pm update using the internal one second counter bit 3: global performance monitor update register (pmu) this bit is used to update all of the performance monitor registers configured to use this bit. when this bit is toggled from low to high the performance registers configured to use this signal will be updated with the latest count value from the counters, and the counters will be reset. the bit should remain high until the performance register update status bit ( gl.sr .pms) goes high, then it should be brought back low which clears the pms status bit. bit 2: latched status bit clear on read enable (lsbcre). this signal determines when latched status register bits are cleared. 0 = latched status register bits are cleared on a write 1 = latched status register bits are cleared on a read bit 1: reset data path (rstdp). when this bit is set, it will force all of the internal data path registers in all ports to their default state. this bit must be set high for a minimum of 100ns. see section 10.3 . note: the default state is a 1 (after a general reset, this bit will be set to one). 0 = normal operation 1 = force all data path registers to their default values bit 0: reset (rst). when this bit is set, all of the internal data path and status and control registers (except this rst bit), on all of the ports, will be reset to their default state. this bit must be set high for a minimum of 100ns. see section 10.3 . 0 = normal operation 1 = force all internal registers to their default values
ds3181/ds3182/ds3183/DS3184 224 of 389 register name: gl.cr2 register description: global control register 2 register address: 004h bit # 15 14 13 12 11 10 9 8 name -- -- -- g8krs2 g8krs1 g8krs0 g8k0s g8kis default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- clad3 clad2 clad1 clad0 default 0 0 0 0 0 0 0 0 bits 12 to 10: global 8khz reference source [2:0] (g8krs[2:0]). these bits determine the source for the internally generated 8 khz reference as well as the internal one-second reference, which is derived from the global 8 khz reference. the source is selected from one of the clad clocks or from one of the port 8kref clock sources. these bits are ignored when the g8kis bit = 1. table 10-12. global 8 khz reference source table gl.cr2. g8kis gl.cr2. g8krs[2:0] source 0 000 none, the 8khz divider is disabled. 0 001 derived from clad ds3 clock output or clka pin if clad is disabled (note: clad is disabled after reset) 0 010 derived from clad e3 clock output or clkb pin if clad is disabled 0 011 derived from clad sts-1 clock output or clkc pin if clad is disabled 0 100 port 1 8kref source selected by p8krs[1:0] 0 101 port 2 8kref source selected by p8krs[1:0] 0 110 port 3 8kref source selected by p8krs[1:0] 0 111 port 4 8kref source selected by p8krs[1:0] 1 xxx gpio4 pin bit 9: global 8khz reference output select (g8kos). this bit determines whether gpio2 pin is used for the global 8krefo output signal, or is used as specified by gl.giocr .gpio2s[1:0]. 0 = gpio2 pin mode selected by gl.giocr. gpio2s[1:0] 1 = gpio2 is the global 8krefo output signal selected by gl.cr2 .8krs[2:0] bit 8: global 8khz reference input select (g8kis). this bit determines whether gpio4 pin is used for the global 8krefi input signal, or is used as specified by gl.giocr .gpio4s[1:0]. g8krefi signal will be low if not selected. global 8kref pin signal will be low if not selected. 0 = gpio4 pin mode selected by gl.giocr. gpio4s[1:0] 1 = gpio4 is the global 8krefi input signal for one second timer and ports to use bits 3 to 0: clad io mode [3:0] (clad[3:0]). these bits control the clad clock io pins clka, clkb and clkc. note: these bits control which clock is used to recover the rx clock from the line in the liu.
ds3181/ds3182/ds3183/DS3184 225 of 389 gl.cr2 clad[3:0] clka pin clkb pin clkc pin 00 xx ds3 clock input e3 clock input sts-1 clock input 01 00 ds3 clock input low output low output 01 01 ds3 clock input e3 clock output low output 01 10 ds3 clock input low output sts-1 clock output 01 11 ds3 clock input sts-1 clock output e3 clock output 10 00 e3 clock input low output low output 10 01 e3 clock input ds3 clock output low output 10 10 e3 clock input low output sts-1 clock output 10 11 e3 clock input sts-1 clock output ds3 clock output 11 00 sts-1 clock input low output low output 11 01 sts-1 clock input e3 output low output 11 10 sts-1 clock input low output ds3 clock output 11 11 sts-1 clock input ds3 clock output e3 clock output
ds3181/ds3182/ds3183/DS3184 226 of 389 register name: gl.giocr register description: global general-purpose io control register register address: 00ah bit # 15 14 13 12 11 10 9 8 name gpio8s1 gpio8s0 gpio7s1 gpio7s0 gpio6s1 gpio6s0 gpio5s1 gpio5s0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name gpio4s1 gpio4s0 gpio3s1 gpio3s0 gpio2s1 gpio2s0 gpio1s1 gpio1s0 default 0 0 0 0 0 0 0 0 bits 15 to 14: general-purpose io 8 select [1:0] (gpio8s[1:0]). these bits determine the function of the gpio8 pin. these selections are only valid if gl.cr1 .gpm[1:0] is not set to 01. 00 = input 01 = port 4 b status output selected by port.cr4 :gpiob[3:0] in port control registers 10 = output logic 0 11 = output logic 1 bits 13 to 12: general-purpose io 7 select [1:0] (gpio7s[1:0]). these bits determine the function of the gpio7 pin. 00 = input 01 = port 4 a status output selected by port.cr4 :gpioa[3:0] in port control registers 10 = output logic 0 11 = output logic 1 bits 11 to 10: general-purpose io 6 select [1:0] (gpio6s[1:0]). these bits determine the function of the gpio6 pin. these selections are only valid if gl.cr1 .meims=0. 00 = input 01 = port 3 b status output selected by port.cr4 :gpiob[3:0] in port control registers 10 = output logic 0 11 = output logic 1 bits 9 to 8: general-purpose io 5 select [1:0] (gpio5s[1:0]). these bits determine the function of the gpio5 pin. 00 = input 01 = port 3 a status output selected by port.cr4 :gpioa[3:0] in port control registers 10 = output logic 0 11 = output logic 1 bits 7 to 6: general-purpose io 4 select [1:0] (gpio4s[1:0]). these bits determine the function of the gpio4 pin. these selections are only valid if gl.cr2 .g8kris=0. 00 = input 01 = port 2 b status output selected by port.cr4 :gpiob[3:0] in port control registers 10 = output logic 0 11 = output logic 1 bits 5 to 4: general-purpose io 3 select [1:0] (gpio3s[1:0]). these bits determine the function of the gpio3 pin. 00 = input 01 = port 2 a status output selected by port.cr4 :gpioa[3:0] in port control registers 10 = output logic 0 11 = output logic 1 bits 3 to 2: general-purpose io 2 select [1:0] (gpio2s[1:0]). these bits determine the function of the gpio2 pin. these selections are only valid if gl.cr2 . gkros=0. 00 = input 01 = port 1 b status output selected by port.cr4 :gpiob[3:0] in port control registers 10 = output logic 0 11 = output logic 1
ds3181/ds3182/ds3183/DS3184 227 of 389 bits 1 to 0: general-purpose io 1 select [1:0] (gpio1s[1:0]). these bits determine the function of the gpio1 pin. 00 = input 01 = port 1 a status output selected by port.cr4 :gpioa[3:0] in port control registers 10 = output logic 0 11 = output logic 1 register name: gl.isr register description: global interrupt status register register address: 010h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name pisr4 pisr3 pisr2 pisr1 -- -- tssr gsr bits 15 to 8: not used (--) bits 7 to 4: port interrupt status register [4:1] (pisr[4:1] ) the corresponding bit is set when any of the bits in the port interrupt status registers ( port.isr ) are set. the int interrupt pin will be driven low when any bit is set and the corresponding gl.isrie .pisrie[4:1] interrupt enable bit is enabled. bit 1: transmit system interface status register interrupt status (tssr) this bit is set when any of the latched status register bits in the transmit system interface are set and enabled for interrupt. the int pin will be driven low when this bit is set and the gl.isrie .tssrie interrupt enable bit is enabled. bit 0: global status register interrupt status (gsr) this bit is set when any of the latched status register bits in the global latched status register ( gl.srl ) are set and enabled for interrupt. the int interrupt pin will be driven low when this bit is set and the gl.isrie .gsrie interrupt enable bit is enabled. register name: gl.isrie register description: global interrupt status register interrupt enable register address: 012h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name pisrie4 pisrie3 pisrie2 pisrie1 -- -- tssrie gsrie default 0 0 0 0 0 0 0 0 bits 15 to 8: not used (--) bits 7 to 4: port interrupt status register interrupt enable [4:1] (pisrie[4:1]) when any interrupt enable bit in this group is enabled corresponding to a status bit set in the gl.isr. pisr[4:1] status bit group, the int pin will be driven low. 0 = interrupt disabled 1 = interrupt enabled bit 1: transmit system interface status register interrupt status interrupt enable (tssrie) when this bit is enabled, and the gl.isr .tssr status bit is set, the int pin will be driven low. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 228 of 389 bit 0: global status register interrupt status interrupt enable (gsrie) when this interrupt enable bit is enabled, and the gl.isr .gsr status bit is set, the int pin will be driven low. 0 = interrupt disabled 1 = interrupt enabled register name: gl.sr register description: global status register register address: 014h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- clol gpms bit 1: clad loss of lock (clol) ? this bit is set when any of the plls in the clad are not locked to the reference frequency. bit 0: global performance monitoring update status (gpms) this bit is set when all of the port performance register update status bits ( port.sr. pms), that are enabled for global update control ( port.cr1. pmum=1), are set. it is an ?and? of all the globally enabled port pmu status bits. in global software update mode, the global update request bit ( gl.cr1. pmu) should be held high until this status bit goes high. 0 = the associated update request signal is low or not all register updates are completed 1 = the requested performance register updates are all completed register name: gl.srl register description: global status register latched register address: 016h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- 8krefl cladl onesl cloll gpmsl bit 4: 8k reference activity status latched (8krefl) this bit will be set when the 8 khz reference signal on the gpio4 pin is active. the gl.cr2 .g8kis bit must be set for the activity to be monitored. bit 3: clad reference clock activity status latched (cladl) this bit will be set when the clad pll reference clock signal on the clka pin is active. bit 2: one second status latched (onesl) this bit will be set once a second. the gl.isr .gsr status bit will be set when this bit is set and the gl.srie .onesie bit is enabled. the int pin will be driven low if this bit is set and the gl.srie .onesie bit and the gl.isrie .gsrie bit are enabled. bit 1: clad loss of lock latched (cloll) this bit will be set when the gl.sr .clol status bit changes from low to high. the gl.isr .gsr bit will be set when this bit is set and the gl.srie .clolie bit is set and the int pin will be driven low if the gl.isrie .gsrie bit is also enabled. bit 0: global performance monitoring update status latched (gpmsl) this bit will be set when the gl.sr .gpms status bit changes from low to high. this bit will set the gl.isr .gsr status bit if the gl.srie .gpmsie is enabled. this bit will drive the interrupt pin low if the gl.srie .gpmsie bit and the gl.isrie .gsrie bit are enabled.
ds3181/ds3182/ds3183/DS3184 229 of 389 register name: gl.srie register description: global status register interrupt enable register address: 018h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- onesie clolie gpmsie default 0 0 0 0 0 0 0 0 bit 2: one second interrupt enable (onesie) this bit will drive the interrupt pin low when this bit is enabled, the gl.srl .onesl bit is set, and the gl.isrie .gsrie bit is enabled. 0 = interrupt disabled 1 = interrupt enabled bit 1: clad loss of lock interrupt enable (clolie) the interrupt pin will be driven when this bit is enabled, the gl.srl .cloll is set, and gl.isrie .gsrie bit is enabled. 0 = interrupt disabled 1 = interrupt enabled bit 0: global performance monitoring update status interrupt enable (gpmsie) the interrupt pin will be driven when this bit is enabled and the gl.srl .gpmsl bit is set and the gl.isrie .gsrie bit is enabled. 0 = interrupt disabled 1 = interrupt enabled register name: gl.giorr register description: global general-purpose io read register register address: 01ch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name gpio8 gpio7 gpio6 gpio5 gpio4 gpio3 gpio2 gpio1 bits 7 to 0: general-purpose io status [8:1]] (gpio[8:1] ) these bits reflect the input or output signal on the 8 general-purpose io pins.
ds3181/ds3182/ds3183/DS3184 230 of 389 12.3 utopia/pos-phy system interface 12.3.1 transmit system interface the transmit system interface block has three registers. 12.3.1.1 register map table 12-21. transmit system interface register map address register register description 030h si.tcr system interface transmit control register 032h si.tsrl system interface transmit status register latched 034h si.tsrie system interface transmit status register interrupt enable 036h -- unused 12.3.1.2 register bit descriptions register name: si.tcr register description: system interface transmit control register register address: 030h bit # 15 14 13 12 11 10 9 8 name -- -- txad5 txad4 txad3 txad2 txad1 txad0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- tparp tflvi tsbre thect default 0 0 0 0 0 0 0 0 bits 13 to 8: transmit cell/packet available deassertion time (txad[5:0]) ? these six bits indicate the amount of data that can be transferred after the cell/packet available signal is deasserted. if more than the indicated amount of data is transferred, a transmit fifo overflow may occur. in utopia mode, only txad[2:0] are valid, and they indicate the number of transfers into the fifo before the transmit fifo is full. for utopia level 2, a value of 00h enables the default mode, which is 5 (tdxa will transition low on the edge that samples payload byte 43 in 8-bit mode, payload bytes 37 and 38 in 16-bit mode, and payload bytes 25, 26, 27, and 28 in 32-bit mode). for utopia level 3, a value of 00h or 01h enables the default mode. the default for utopia level 3 is for tdxa to transition low on the clock edge following the edge that samples the start of a cell. in pos-phy mode, txad[5:0] indicate the number four byte data groups that can be written into the transmit fifo before it is full (maximum value 56 or 38h). in pos-phy level 2, a value of 00h enables the default mode, which is 1 (for an x-byte transfer, tdxa and tspa will transition low on the edge that samples byte x-4 in 8-bit mode, bytes x-5 and x-4 in 16-bit mode, and bytes x-7, x-6, x-5, and x-4 in 32-bit mode). in pos-phy level 3 (or spi-3) 8-bit, a value of 00h enables the default mode, which is 1 (for a x-byte transfer, tdxa and tspa will transition low on the edge that samples byte x-4). for pos-phy level 3 (or spi-3) 16-bit and 32-bit mode, a value of 00h or 01h enables the default mode, which is 2 (for an x-byte transfer, tdxa and tspa will transition low on the edge that samples bytes x-9 and x-8 in 16-bit mode and bytes x-11, x-10, x-9, and x-8 in 32-bit mode). note: a packet that is 4x+1, 4x+2, 4x+3, or 4x+4 (where x is an integer) bytes long consumes x+1 four byte data groups of space in the fifo. this includes 2-byte and 3-byte packets, which consume a four-byte data group of space in the fifo. bit 3: transmit system parity polarity (tparp) ? when 0, the tpar signal will maintain odd parity (for all 0''s, tpar is high). when 1, the tpar signal will maintain even parity (for all 0''s, tpar is low).
ds3181/ds3182/ds3183/DS3184 231 of 389 bit 2: transmit system f ill level inversion (tflvi) ? when 0, the polarity of the tpxa, tdxa, and tspa signals will be normal (high for data available). when 1, the polarity of the tpxa, tdxa, and tspa signals will be inverted (low for data available). bit 1: transmit system interface byte reordering enable (tsbre) ? when 0, byte reordering is disabled, and the first byte transmitted is transferred across the system interface as the most significant byte (tdata[31:24] in 32-bit mode or tdata[15:8] in 16-bit mode). when 1, byte reordering is enabled, and the first byte transmitted is transferred across the system interface as the least significant byte (tdata[7:0]). bit 0: transmit system hec transfer (thect) ? when 0, the hec byte is not transferred across the transmit system interface. when 1, the hec byte is transferred across the transmit system interface with the cell data. register name: si.tsrl register description: system interface transmit status register latched register address: 032h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- tsclkal tprel bit 1: transmit system interface clock active (tsclkal) ? this bit is set when tsclk is active. bit 0: transmit system interface parity error latched (tprel) ? this bit is set when a parity error is detected during a data transfer on the transmit system interface bus. register name: si.tsrie register description: system interface transmit status register interrupt enable register address: 034h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tpreie default 0 0 0 0 0 0 0 0 bit 0: transmit system interface parity error interrupt enable (tpreie) ? this bit enables an interrupt if the tprel bit in the tsisrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled 12.3.2 receive system interface register map the receive system interface block has three registers. table 12-22. receive system interface register map address register register description 038h si.rcr1 receive system interface control register #1 03ah si.rcr2 receive system interface control register #2 03ch si.rsrl receive system interface status register latched 03eh -- unused
ds3181/ds3182/ds3183/DS3184 232 of 389 12.3.2.1 register bit descriptions register name: si.rcr1 register description: system interface receive control register register address: 038h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- rmdt2 rmdt1 rmdt0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- rxad2 rxad1 rxad0 rparp rflvi rsbre rhect default 0 0 0 0 0 0 0 0 bits 10 to 8: receive system rval minimum deassertion time (rmdt[2:0]) ? these three bits indicate the minimum number of clock cycles that rval must remain deasserted between packets transferred from the same port, a transfer of data equal to the maximum burst depth length (if enabled), or before rsx can be asserted. a value of zero, means that rval will not deassert between packets transferred from the same port or between transfers of the maximum burst length when no other port has data available. these bits are ignored in utopia and pos-phy level 2 modes. note: the rval minimum deassertion time is for optionally extending the time between packet transfers and port changes to allow a pos-phy level 3 link layer device enough time to deassert ren and pause the next data transfer. bits 6 to 4: receive cell available deassertion time (rxad[2:0]) ? these three bits indicate the number of transfers that will occur after the selected receive fifo indicates it is "empty". a value of 000, enables the default mode. the default for utopia level 2 is 0 (rdxa will transition low on the clock edge fo llowing the clock edge that outputs payload byte 48 in 8-bit mode, payload bytes 47 and 48 in 16-bit mode, and payload bytes 45, 46, 47, and 48 in 32-bit mode). the default for utopia level 3 is for rdxa to transition low on the clock edge that outputs the start of cell. these bits are ignored in pos-phy mode. bit 3: receive system parity polarity (rparp) ? when 0, the rprty signal will maintain odd parity (for all 0''s, rprty is high). when 1, the rprty signal will maintain even parity (for all 0''s, rprty is low). bit 2: receive system fill level inversion (rflvi) ? when 0, the polarity of the rpxa and rdxa signals will be normal (high for data available). when 1, the polarity of the rpxa and rdxa signals will be inverted (low for data available). bit 1: receive system interface byte reordering enable (rsbre) ? when 0, byte reordering is disabled, and the first byte received is transferred across the system interface as the most significant byte (rdata[31:24] in 32- bit mode or rdata[15:8] in 16-bit mode). when 1, byte reordering is enabled, and the first byte received is transferred across the system interface as the least significant byte (rdata[7:0]). bit 0: receive system hec transfer enable (rhect) ? when 0, the hec byte is not transferred across the receive system interface. when 1, the hec byte is transferred across the receive system interface with the cell data. register name: si.rcr2 register description: system interface receive control register #2 register address: 03ah bit # 15 14 13 12 11 10 9 8 name -- -- rmbl5 rmbl4 rmbl3 rmbl2 rmbl1 rmbl0 default 0 0 0 0 0 0 0 0
ds3181/ds3182/ds3183/DS3184 233 of 389 bit # 7 6 5 4 3 2 1 0 name rlbl7 rlbl6 rlbl5 rlbl4 rlbl3 rlbl2 rlbl1 rlbl0 default 0 0 0 0 0 0 0 0 bits 13 to 8: receive maximum burst length (rmbl[5:0]) ? in pos-phy level 3, these six bits limit the maximum number of four byte data groups that can be transferred from a port before switching to another port. the maximum number of transfers is rmbl[5:0]+1 in 32-bit mode, 2 x (rmbl[5:0]+1} in 16-bit mode, and 4*(rmbl[5:0]+1} in 8-bit mode. note: if no other port is ready to start a transfer, transfer from the current port will continue if the port contains more data than the almost empty level or contains an end of packet. these bits are ignored in pos-phy level 2 or utopia mode. a value of 00h disables the maximum burst length. in 32-bit mode, a value of 01h is treated as 02h. bits 7 to 0: receive system loopback bandwidth limit (rlbl[7:0]) ? these eight bits limit the maximum bandwidth of a single port during system loopback. for rlbl[7:0] equals x, the bandwidth will be limited to 1/ x of the maximum system interface bandwidth. in 8-bit and 16-bit mode, a value of 00h is treated as 01h. in 32-bit mode, a value of 01h or 00h is treated as 02h. register name: si.rsrl register description: system interface receive status register latched register address: 03ch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- rsclkal bit 0: receive system interface clock active latched (rsclkal) ? this bit is set when rsclk is active.
ds3181/ds3182/ds3183/DS3184 234 of 389 12.4 per-port common 12.4.1 register bit descriptions table 12-23. per-port common register map address register register description (0,2,4,6)40h port.cr1 port control register 1 (0,2,4,6)42h port.cr2 port control register 2 (0,2,4,6)44h port.cr3 port control register 3 (0,2,4,6)46h port.cr4 port control register 4 (0,2,4,6)48h -- unused (0,2,4,6)4ah port.inv1 port io invert control register 1 (0,2,4,6)4ch portinv2 port io invert control register 2 (0,2,4,6)4eh -- unused (0,2,4,6)50h port.isr port interrupt status register (0,2,4,6)52h port.sr port status register (0,2,4,6)54h port.srl port status register latched (0,2,4,6)56h port.srie port status register interrupt enable (0,2,4,6)58h -- unused (0,2,4,6)5ah -- unused (0,2,4,6)5ch -- unused (0,2,4,6)5eh -- unused
ds3181/ds3182/ds3183/DS3184 235 of 389 register name: port.cr1 register description: port control register 1 register address: (0,2,4,6)40h bit # 15 14 13 12 11 10 9 8 name nad pais2 pais1 pais0 lais1 lais0 bena hdsel default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tmei meim -- pmum pmu pd rstdp rst default 0 0 -- 0 0 1 1 0 bit 15: nibble align disable (nad). this bit is used to disable the nibble alignment of the transmit atm cells in direct mapped ds3 or e3 g.832 framing modes. it must be set when in ds3 m23 mode and the c-bits are used for atm payload. 0 = nibble alignment enabled 1 = nibble alignment disabled bits 14 to 12: payload ais select [2:0] (pais[2:0]). this bit controls when an unframed all ones signal is forced on the receive data path after the receive framer and payload loopback mux. default: payload ais always sent. pais[2:0] port.cr1 when ais is sent ais code 000 always ua1 001 when llb (no dlb) active ua1 010 when plb active ua1 011 when llb(no dlb) or plb active ua1 100 when los (no dlb) active ua1 101 when oof active ua1 110 when oof, los. llb (no dlb), or plb active ua1 111 never none bits 11 to 10: line ais select [1:0] (lais[1:0). these bits control when a ds3 framed ais or an unframed all ones signal is to be transmitted on tposn/tnegn and/or txpn/txnn. the signal on tposn/tnegn can be ami or unipolar. this signal is sent even when in diagnosti c loopback and always over-rides signals from the framers. default: ais sent if dlb is enabled.
ds3181/ds3182/ds3183/DS3184 236 of 389 lais[1:0] port.cr1 frame mode description ais code 00 ds3 automatic ais when dlb is enabled ( port.cr4 .lbm = 1xx) ds3ais 00 e3 automatic ais when dlb is enabled ua1 00 clear channel automatic ais when dlb is enabled ua1 01 any send ua1 ua1 10 ds3 send ais ds3ais 10 e3 or clear channel send ais ua1 11 any disable none bit 9: bert enable (bena). this bit is used to enable the bert logic. the bert pattern will be the payload data replacing the cell or packet data from the system interface. 0 = bert logic disabled and powered down 1 = bert logic enabled note: data on the receive side will flow to the cell/packet processor regardless of the setting of bena. the packet processor could detect packets even if not desired. to disable possible packets on the system interface, set the fifo.rcr.rfrst bit. bit 8: hdlc select (hdsel). this bit is used to select the source of the receive hdlc controller and the destination of the transmit hdlc controller when in ds3 or e3 plcp mode. when not in any plcp mode, this bit has no meaning and the hdlc controllers are connected to the ds3 or e3 framers if in ds3 or e3 mode. 0 = connect hdlc controller to ds3 or e3 framers 1 = connect hdlc controller to plcp framers bit 7: transmit manual error insert (tmei) this bit is used to insert errors in all error insertion logic configured to use this bit when port.cr1 .meim=0. the error(s) will be inserted when this bit is toggled low to high. bit 6: transmit manual error insert mode (meim). these bits select the method transmit manual error insertion for this port for error generators configured to use the external tmei signal. the global updates are controlled by the gl.cr1 .meims bit. 0 = port software update via port.cr1 .tmei 1 = global update source bit 4: performance monitor update mode (pmum). these bits select the method of updating the performance monitor registers. the global updates are controlled by the gl.cr1 .gpm[1:0] bits. 0 = port software update 1 = global update bit 3: performance monitor register update (pmu) this bit is used to update all of the performance monitor registers configured to use this bit when port.cr1 .pmum=0. the performance registers configured to use this signal will be updated with the latest count value and the counters reset when this bit is toggled low to high. the bit should remain high until the performance register update status bit ( port.sr .pms) goes high, then it should be brought back low which clears the pms status bit. bit 2: power-down (pd). when this bit is set, the liu and digital logic for this port are powered down and considered ?out of service.? the logic is powered down by stopping the clocks. see section 10.3 . 0 = normal operation 1 = power-down port circuits (default state)
ds3181/ds3182/ds3183/DS3184 237 of 389 bit 1: reset data path (rstdp). when this bit is set, it will force all of the internal data path registers in this port to their default state. this bit must be set high for a minimum of 100ns and then set back low. see section 10.3 . note: the default state of this bit is 1 (after a general reset (port or global), this bit will be set to one). 0 = normal operation 1 = force all data path registers to their default values bit 0: reset (rst). when this bit is set, it will force all of the internal data path and status and control registers (except this rst bit) of this port to their default state. see section 10.3 . this bit must be set high for a minimum of 100ns and then set back low. this software bit is logically ored with the inverted hardware signal rst and the gl.cr1 .rst bit. 0 = normal operation 1 = force all internal registers to their default values register name: port.cr2 register description: port control register 2 register address: (0,2,4,6)42h bit # 15 14 13 12 11 10 9 8 name tlen tts rmon tlbo rcdv8 lm2 lm1 lm0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rcdis pmcpe fm5 fm4 fm3 fm2 fm1 fm0 default 0 0 0 0 0 0 0 0 bit 15: transmit line io signal enable (tlen). this bit is used to enable to transmit line interface output pins tlclkn, tposn/tdatn and tnegn. 0 = disable, force outputs low 1 = enable normal operation bit 14: transmit liu tri-state (tts) this bit is used to tri-state the transmit txpn and txnn pins. the liu is still powered up when the pins are tri-stated. it has no effect when the liu is disabled and powered down. 0 = txpn and txnn driven 1 = txpn and txnn tri-stated bit 13: receive liu monitor mode (rmon) this bit is used to enable the receive liu monitor mode pre-amplifier. enabling the pre-amplifier adds about 20 db of linear amplification for use in monitor applications where the signal has been reduced 20 db using resistive attenuator circuits. 0 = disable the 20 db pre-amp 1 = enable the 20 db pre-amp bit 12: transmit liu lbo (tlbo) this bit is used enable the transmit lbo circuit which causes the transmit signal to have a wave shape that approximates about 225 feet of cable. this is used to reduce near end crosstalk when the cable lengths are short. this signal is only valid in ds3 and sts-1 liu modes. 0 = txpn and txnn have full amplitude signals 1 = txpn and txnn signals approximate 225 feet of cable bit 11: receive atm cell delineati on verify 8 enable (rcdv8). this bit determines the number of good cells required for the atm cell delineator state machine to transition from the ?verify? state to the ?update? state. this setting also determines how many valid cells required to clear the ocd status bit. 0 = six valid atm cells are required (typical for framed cells) 1 = eight valid atm cells are required (typical for unframed cells)
ds3181/ds3182/ds3183/DS3184 238 of 389 bits 10 to 8: port interface mode (lm[2:0]). the lm[2:0] bits select main port interface operational modes. the default state disables the liu and the ja. table 10-33. line mode select bits lm[2:0] line.tcr . tzsd and line.rcr .rzsd lm[2:0] (port.cr2 ) line code liu ja 0 000 b3zs/hdb3 off off 0 001 b3zs/hdb3 on off 0 010 b3zs/hdb3 on tx 0 011 b3zs/hdb3 on rx 1 000 ami off off 1 001 ami on off 1 010 ami on tx 1 011 ami on rx x 1xx uni off off bit 7: receive cell delineator disable (rcdis). this bit determines if the atm cell delineator in the atm cell processor is active in plcp modes. this atm cell delineator in the atm cell processor is always active in non- plcp atm cell modes. 0 = atm cell delineation is determined in the atm cell processor 1 = atm cell delineation is determined in the plcp framer note: rcdis = 1 is not a recommended mode. bit 6: pos-phy mode cell processor enable (pmcpe). this bit determines the associated transmit and receive port interface processing (cell/packet) to be performed in the pos-phy mode. it is only active in pos-phy mode when plcp is not enabled. when plcp is enabled in pos-phy mode, cell processing is performed. 0 = packet processing will be performed 1 = cell processing will be performed bits 5 to 0: framing mode (fm[5:0]). the fm[5:0] bits select main framing operational modes. default: ds3 c-bit.
ds3181/ds3182/ds3183/DS3184 239 of 389 fm[5:0] description line code system figure 0 00 000 ds3 c-bit b3zs/ami/uni atm/pkt figure 6-1 0 00 001 ds3 c-bit?ohm uni atm/pkt figure 6-2 0 00 010 ds3 c-bit internal fractional b3zs/ami/uni atm/pkt figure 6-3 0 00 011 ds3 c-bit external fractional b3zs/ami/uni atm/pkt figure 6-4 0 00 100 ds3 c-bit plcp b3zs/ami/uni atm figure 6-6 0 00 101 ds3 c-bit plcp?ohm uni atm figure 6-7 0 00 110 ds3 c-bit flexible fractional b3zs/ami/uni atm/pkt figure 6-5 0 01 000 ds3 m23 b3zs/ami/uni atm/pkt figure 6-1 0 01 001 ds3 m23?ohm uni atm/pkt figure 6-2 0 01 010 ds3 m23 internal fractional b3zs/ami/uni atm/pkt figure 6-3 0 01 011 ds3 m23 external fractional b3zs/ami/uni atm/pkt figure 6-4 0 01 100 ds3 m23 plcp b3zs/ami/uni atm figure 6-6 0 01 101 ds3 m23 plcp?ohm uni atm figure 6-7 0 01 110 ds3 m23 flexible fractional b3zs/ami/uni atm/pkt figure 6-5 0 10 000 e3 g.751 hdb3/ami/uni atm/pkt figure 6-1 0 10 001 e3 g.751?ohm uni atm/pkt figure 6-2 0 10 010 e3 g.751 internal fractional hdb3/ami/uni atm/pkt figure 6-3 0 10 011 e3 g.751 external fractional hdb3/ami/uni atm/pkt figure 6-4 0 10 100 e3 g.751 plcp hdb3/ami/uni atm figure 6-6 0 10 101 e3 g.751 plcp?ohm uni atm figure 6-7 0 10 110 e3 g.751 flexible fractional hdb3/ami/uni atm/pkt figure 6-5 0 11 000 e3 g.832 hdb3/ami/uni atm/pkt figure 6-1 0 11 001 e3 g.832?ohm uni atm/pkt figure 6-2 0 11 010 e3 g.832 internal fractional hdb3/ami/uni atm/pkt figure 6-3 0 11 011 e3 g.832 external fractional hdb3/ami/uni atm/pkt figure 6-4 0 11 100 reserved 0 11 101 reserved 0 11 110 e3 g.832 flexible fractional hdb3/ami/uni atm/pkt figure 6-5 1 00 0x0 ds3 clear channel b3zs/ami/uni atm/pkt figure 6-8 1 00 001 ds3 clear-channel?ohm uni atm/pkt figure 6-9 1 00 011 ds3 clear-channel?ohm octet aligned uni atm/pkt figure 6-10 1 01 0x0 sts-1 clear channel b3zs/ami/uni atm/pkt figure 6-8 1 01 001 sts-1 clear-channel?ohm uni atm/pkt figure 6-9 1 01 011 sts-1 clear-channel?ohm octet aligned uni atm/pkt figure 6-10 1 1x 0x0 e3 clear channel hdb3/ami/uni atm/pkt figure 6-8 1 1x 001 e3 clear-channel?ohm uni atm/pkt figure 6-9 1 1x 011 e3 clear-channel?ohm octet aligned uni atm/pkt figure 6-10
ds3181/ds3182/ds3183/DS3184 240 of 389 register name: port.cr3 register description: port control register 3 register address: (0,2,4,6)44h bit # 15 14 13 12 11 10 9 8 name -- -- rclks rsofos rp fpe tclks tsofos tpfpe default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name p8krs1 p8krs0 p8kref loopt cladc rfts tfts tlts default 0 0 0 0 0 0 0 0 bit 13: receive clock output select (rclks). this bit is used to select the function of the rpohclkn / rgclkn / rclkon pins. see table 10-31 . 0 = selects the rgclkn signal, rpohclkn signal, or the drive low pin function. 1 = selects rclkon signal. bit 12: receive start of frame output select (rsofos). this bit is to select the function of the rsofon / rdenn pins. see table 10-30 . 0 = selects rdenn signal. 1 = selects rsofon signal. bit 11: receive plcp/fractional port enable (rpfpe). this bit is used to enable the receive plcp/fractional port pins. see tables in section 10.5.9.2 . 0 = disable receive plcp/fractional port pins 1 = enable receive plcp/fractional port pins bit 10: transmit clock output select (tclks). this bit is used to select the function of the tpohclkn / tgclkn / tclkon pins. see table 10-24 . 0 = selects tgclkn or tpohclkn signal. 1 = selects tclkon signal. bit 9: transmit start of frame output select (tsofos). this bit is used to select the function of the tsofon / tdenn pins. see table 10-23 . 0 = selects tdenn signal. 1 = selects tsofon signal. bit 8: transmit plcp/fractional port enable (tpfpe). this bit is used to enable the transmit plcp/fractional port pins. see tables in section 10.5.9.1 . 0 = disable transmit plcp/fractional port pins 1 = enable transmit plcp/fractional port pins bits 7 and 6: port 8 khz reference source select [1:0] (p8krs [1:0]). these bits select the source of the 8 khz reference from the port sources. the 8k reference for this port can be used as the global 8k reference source. see table 10-13 below . port.cr3. p8krs[1:0] source 0x receive plcp 8khz output 10 receive internal framer clock (based on rlclkn pin or rx liu recovered clock) 11 transmit internal framer clock (based on tclkin pin or clad clock) bit 5: port 8 khz reference source (p8kref). this bit selects the source of the 8 khz reference for plcp trailer operation and one second timer. 0 = 8 khz reference from global source 1 = 8 khz reference from this ports selected source
ds3181/ds3182/ds3183/DS3184 241 of 389 bit 4: loop time enable (loopt). when this bit is set, the port is in loop time mode. the transmit clock is set to the receive clock from the rlclkn pin or the recovered clock from the liu or the clad clock and the tclkin pin is not used. this function of this bit is conditional on other control bits. see table 10-4 for more details. 0 = normal transmit clock operation 1 = transmit using the receive clock bit 3: clad transmit clock source control (cladc). this bit is used to enable the clad clocks as the source of the internal transmit clock. this function of this bit is conditional on other control bits. see table 10-4 for more details. 0 = use clad clocks for the transmit clock as appropriate 1 = do not use clad clocks for t he transmit clock ? (if no loopback is enabled, tc lkin is the source) bit 2: receive framer io signal timing select (rfts). this bit controls the timing reference for the signals on the receive framer interface io pins. the pins controlled are rsern, rsofon / rdenn / rfohenn and rfohenn. see table 10-8 for more details. 0 = use output clocks for timing reference 1 = use input clocks for timing reference bit 1: transmit framer io signal timing select (tfts). this bit controls the timing reference for the signals on the transmit framer interface io pins. the pins controlled are tohmin / tsofin, tfohn / tsern, tfohenin and tsofon / tdenn / tfohenon. see table 10-7 for more details. 0 = use output clocks for timing reference 1 = use input clocks for timing reference bit 0: transmit line io signal timing select (tlts). this bit controls the timing reference for the signals on the transmit line interface io pins. the pins controlled are tposn / tdatn and tnegn / tohmon. see table 10-6 for more details. 0 = use output clocks for timing reference 1 = use input clocks for timing reference register name: port.cr4 register description: port control register 4 register address: (0,2,4,6)46h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- slb lbm2 lbm1 lbm0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name gpiob3 gpiob2 gpiob1 gpiob0 gpioa3 gpioa2 gpioa1 gpioa0 default 0 0 0 0 0 0 0 0 bit 11: system bus loopback (slb). this bit enables the system bus loopback mode per port when the bit is set. atm cells and/or hdlc packets are looped back from the transmit system bus to the receive system bus through the fifos. see figure 10-10 for the block diagram highlighting loopback features. bits 10 to 8: loopback m ode [2:0] (lbm[2:0]). these bits select the loopback modes for analog loopback (alb), line loopback (llb), payload loopback (plb) and diagnostic loopback (dlb). see table 10-17 for the loopback select codes. default: no loopback. lbm[2:0] alb llb plb dlb 000 0 0 0 0 001 1 0 0 0 010 0 1 0 0 011 0 0 1 0 10x 0 0 0 1
ds3181/ds3182/ds3183/DS3184 242 of 389 110 0 1 0 1 111 0 0 0 1 bits 7 to 4: general-purpose io b output select[3:0] (gpiob[3:0]) these bits determine which alarm status signal to output on the gpio2(port 1), gpio4(port 2), gpio6(port 3) or gpio8(port 4) pins. the gpio pin must be enabled by setting the bits in the gl.giocr and either gl.cr1 or gl.cr2 registers to output the selected alarm signal. see table 10-15. see table 10-16 for the alarm select codes. bits 3 to 0: general-purpose io a output select[3:0] (gpioa[3:0]) these bits determine which alarm status signal to output on the gpio1(port 1), gpio3(port 2), gpio5(port 3) or gpio7(port 4) pins. the gpio pin must be enabled for output by setting the bits in the gl.giocr register. see table 10-15 for configuration settings. see table 10-16 below for the alarm select codes. table 10-16. gpio port alarm monitor select port.cr4 gpio(a/b)[3:0] line los ds3/e3 oof ds3/e3 lof ds3/e3 ais ds3/e3 rai ds3 idle plcp oof plcp lof plcp rai atm ocd atm lcd 0000 x 0001 x 0010 x 0011 x 0100 x 0101 x 0110 x 0111 x 1000 x 1001 x 1010 x 1011 x x x 1100 x x 1101 x x x x x 1110 x x x 1111 x x x x x x x x x x x
ds3181/ds3182/ds3183/DS3184 243 of 389 register name: port.inv1 register description: port io invert c ontrol register 1 register address: (0,2,4,6)4ah bit # 15 14 13 12 11 10 9 8 name tpdei tpdti -- tpohsi tpohei tpohi tohsi tohei default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tohi tohcki tsofii tnegi tposi tlcki tckoi tckii default 0 0 0 0 0 0 0 0 bit 15: tpdenon invert (tpdei). this bit inverts the tpdenon pin when set. bit 14: tpdatn invert (tpdti). this bit inverts the tpdatn pin when set. bit 12: tpohsofn / tsofon / tdenn/ tfohenon invert (tpohsi). this bit inverts the tpohsofn / tsofon / tdenn / tfohenon pin when set. bit 11: tpohenn / tfohenin / tpdenin invert (tpohei). this bit inverts the tpohenin / tfohenin / tpdenin pin when set. bit 10: tpohn / tfohn / tsern invert (tpohi). this bit inverts the tpohn / tfohn / tsern pin when set. bit 9: tohsofn invert (tohsi). this bit inverts the tohsofn pin when set. bit 8: tohenn invert (tohei). this bit inverts the tohenn pin when set. bit 7: tohn invert (tohi). this bit inverts the tohn pin when set. bit 6: tohclkn invert (tohcki). this bit inverts the tohclkn pin when set. bit 5: tsofin / tohmin invert (tsofii). this bit inverts the tsofin / tohmin pin when set. bit 4: tnegn / tohmon invert (tnegi). this bit inverts the tnegn / tohmon pin when set. bit 3: tposn / tdatn invert (tposi). this bit inverts the tposn / tdatn pin when set. bit 2: tlclkn invert (tlcki). this bit inverts the tlclkn pin when set. bit 1: tclkon / tgclkn / tpohclkn invert (tckoi). this bit inverts the tclkon / tgclkn / tpohclkn pin when set. bit 0: tclkin invert (tckii). this bit inverts the tclkin pin when set. register name: portinv2 register description: port io invert c ontrol register 2 register address: (0,2,4,6)4ch bit # 15 14 13 12 11 10 9 8 name -- rpdti rfohei rp ohsi -- rpohi rohsi -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rohi rohcki -- rnegi rposi rlck i rckoi -- default 0 0 0 0 0 0 0 0 bit 14: rpdatn invert (rpdti). this bit inverts the rpdatn pin when set. bit 13: rfohenin / rpdenin invert (rfohei). this bit inverts the rfohenin / rpdenin pin when set.
ds3181/ds3182/ds3183/DS3184 244 of 389 bit 12: rpohsofn / rsofon / rdenn / rfohenon invert (rpohsi). this bit inverts the rpohsofn / rsofon / rdenn / rfohenon pin when set. bit 10: rpohn / rsern invert (rpohi). this bit inverts the rpohn / rsern pin when set. bit 9: rohsofn invert (rohsi). this bit inverts the rohsofn pin when set. bit 7: rohn invert (rohi). this bit inverts the rohn pin when set. bit 6: rohclkn invert (rohcki). this bit inverts the rohclkn pin when set. bit 4: rnegn / rlcvn / rohmin invert (rnegi). this bit inverts the rnegn / rlcvn / rohmin when set. bit 3: rposn / rdatn invert (rposi). this bit inverts the rposn / rdatn pin when set. bit 2: rlclkn invert (rlcki). this bit inverts the rlclkn pin when set. bit 1: rclkon / rgclkn / rpohclkn invert (rckoi). this bit inverts the rclkon / rgclkn / rpohclkn pin when set. register name: port.isr register description: port interrupt status register register address: (0,2,4,6)50h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- psr lcsr bit # 7 6 5 4 3 2 1 0 name ttsr fsr hsr bsr sfsr cpsr ppsr fmsr bit 9: port status register interrupt status (psr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the port.srl register are set. the interrupt pin will be driven when this bit is set and the corresponding gl.isrie .pisrie[4:1] is set. bit 8: line code status register interrupt status (lcsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the b3zs/hdb3 line encoder/decoder block are set. the interrupt pin will be driven when this bit is set and the corresponding gl.isrie .pisrie[4:1] is set. bit 7: trail trace status register interrupt status (ttsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the trail trace block are set. the interrupt pin will be driven when this bit is set and the corresponding gl.isrie .pisrie[4:1] is set. bit 6: feac status register interrupt status (fsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the feac block are set. the interrupt pin will be driven when this bit is set and the corresponding gl.isrie .pisrie[4:1] is set. bit 5: hdlc status register interrupt status (hsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the hdlc block are set. the interrupt pin will be driven when this bit is set and the corresponding gl.isrie .pisrie[4:1] is set. bit 4: bert status register interrupt status (bsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the bert block are set. the interrupt pin will be driven when this bit is set and the corresponding gl.isrie .pisrie[4:1] is set. bit 3: system fifo status register interrupt status (sfsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in either the transmit or receive fifo block are set. the interrupt pin will be driven when this bit is set and the corresponding gl.isrie .pisrie[4:1] is set. bit 2: cell/packet status regi ster interrupt status (cpsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the active transmit or receive cell processor or packet processor block are set. the interrupt pin will be driven when this bit is set and the corresponding gl.isrie .pisrie[4:1] is set.
ds3181/ds3182/ds3183/DS3184 245 of 389 bit 1: plcp status register interrupt status (ppsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the active plcp block are set. the interrupt pin will be driven when this bit is set and the corresponding gl.isrie .pisrie[4:1] is set. bit 0: framer status register interrupt status (fmsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the active ds3 or e3 framer block are set. the interrupt pin will be driven when this bit is set and the corresponding gl.isrie .pisrie[4:1] is set. register name: port.sr register description: port status register register address: (0,2,4,6)52h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- tdm rlol pms bit 2: transmit driver monitor status (tdm) this bits indicates the status of the transmit monitor circuit in the transmit liu. 0 = transmit output not over loaded 1 = transmit signal is overloaded bit 1: receive loss of lock status (rlol) this bits indicates the status of the receive liu clock recovery pll circuit. 0 = locked to the incoming signal 1 = not locked to the incoming signal bit 0: performance monitoring update status (pms) this bits indicates the status of all active performance monitoring register and counter update signals in this port. it is an ?and? of all update status bits and is not set until all performance registers are updated and the counters reset. in software update modes, the update request bit port.cr1.pmu should be held high until this status bit goes high. 0 = the associated update request signal is low 1 = the requested performance register updates are all completed register name: port.srl register description: port status register latched register address: (0,2,4,6)54h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name rlclka tclkia -- -- -- tdml rloll pmsl bit 7: receive line clock activity status latched (rlclka) this bit will be set when the signal on the rlclkn pin or the recovered clock from the liu for this port is active. bit 6: transmit input clock activity status latched (tclkia) this bit will be set when the signal on the tclkin pin for this port is active. bit 2: transmit driver monitor status latched (tdml) this bit will be set when the port.sr. tdm status bit changes from low to high. this bit will also set the port.isr. psr status bit if the port.srie. tdmie bit is enabled. the interrupt pin will be driven when this bit is set, the port.srie. tdmie bit is set, and the corresponding gl.isrie. pisrie[4:1] bit is also set.
ds3181/ds3182/ds3183/DS3184 246 of 389 bit 1: receive loss of lock status latched (rloll) this bit will be set when the port.sr .rlol status bit changes from low to high. this bit will also set the port.isr .psr status bit if the port.srie .rlolie bit is enabled. the interrupt pin will be driven when this bit is set, the port.srie .rlolie bit is set, and the corresponding gl.isrie .pisrie[4:1] bit is also set. bit 0: performance monitoring update status latched (pmsl) this bit will be set when the port.sr .pms status bit changes from low to high. this bit will also set the port.isr .psr status bit if the port.srie .pmuie bit is enabled. the interrupt pin will be driven when this bit is set, the port.srie .pmuie bit is set, and the port.srie .pmsie bit are set. register name: port.srie register description: port status register interrupt enable register address: (0,2,4,6)56h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- tdmie rlolie pmsie default 0 0 0 0 0 0 0 0 bit 2: transmit driver monitor latched status interrupt enable (tdmie) the interrupt pin will be driven when this bit is enabled and the port.srl .tdml bit is set and the bit in gl.isrie .pisrie[4:1] that corresponds to this port is enabled. bit 1: receive loss of lock latched status interrupt enable (rlolie) the interrupt pin will be driven when this bit is enabled and the port.srl .rloll bit is set and the bit in gl.isrie .pisrie[4:1] that corresponds to this port is enabled. bit 0: performance monitoring update latched status interrupt enable (pmsie) the interrupt pin will be driven when this bit is enabled and the port.srl .pmsl bit is set and the bit in gl.isrie .pisrie[4:1] that corresponds to this port is enabled.
ds3181/ds3182/ds3183/DS3184 247 of 389 12.5 bert 12.5.1 bert register map the bert uses 12 registers. note: the bert registers will be cleared when gl.cr1 .rstdp or port.cr1.rstdp or port.cr1.pd is set. table 12-24. bert register map address register register description (0,2,4,6)60h bert.cr bert control register (0,2,4,6)62h bert.pcr bert pattern configuration register (0,2,4,6)64h bert.spr1 bert seed/pattern register #1 (0,2,4,6)66h bert.spr2 bert seed/pattern register #2 (0,2,4,6)68h bert.teicr bert transmit error insertion control register (0,2,4,6)6ah -- unused (0,2,4,6)6ch bert.sr bert status register (0,2,4,6)6eh bert.srl bert status register latched (0,2,4,6)70h bert.srie bert status register interrupt enable (0,2,4,6)72h -- unused (0,2,4,6)74h bert.rbecr1 bert receive bit error count register #1 (0,2,4,6)76h bert.rbecr2 bert receive bit error count register #2 (0,2,4,6)78h bert.rbcr1 bert receive bit count register #1 (0,2,4,6)7ah bert.rbcr2 bert receive bit count register #2 (0,2,4,6)7ch -- unused (0,2,4,6)7eh -- unused 12.5.2 bert register bit descriptions register name: bert.cr register description: bert control register register address: (0,2,4,6)60h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name pmum lpmu rnpl rpic mpr aprd tnpl tpic default 0 0 0 0 0 0 0 0 bit 7: performance monitoring update mode (pmum) ? when 0, a performance monitoring update is initiated by the lpmu register bit. when 1, a performance monitoring update is initiated by the global or port pmu register bit. note: if the lpmu bit or the global or port pmu bit is one, changing the state of this bit may cause a performance monitoring update to occur. bit 6: local performance monitoring update (lpmu) ? this bit causes a performance monitoring update to be initiated if local performance monitoring update is enabled (pmum = 0). a 0 to 1 transition causes the performance monitoring registers to be updated with the latest data, and the counters reset (0 or 1). for a second performance monitoring update to be initiated, this bit must be set to 0, and back to 1. if lpmu goes low before the pms bit goes high; an update might not be performed. this bit has no affect when pmum=1. bit 5: receive new pattern load (rnpl) ? a zero to one transition of this bit will cause the programmed test pattern (qrss, pts, plf[4:0}, ptf[4:0], and bsp[31:0]) to be loaded in to the receive pattern generator. this bit
ds3181/ds3182/ds3183/DS3184 248 of 389 must be changed to zero and back to one for another pattern to be loaded. loading a new pattern will forces the receive pattern generator out of the ?sync? state which causes a re-synchronization to be initiated. note: qrss, pts, plf[4:0}, ptf[4:0], and bsp[31:0] must not change from the time this bit transitions from 0 to 1 until four receive clock cycles after this bit transitions from 0 to 1. register bit port.cr1.bena must be set and the receive clock running in order for the pattern load to take affect. bit 4: receive pattern inversion control (rpic) ? when 0, the receive incoming data stream is not altered. when 1, the receive incoming data stream is inverted. bit 3: manual pattern re-synchronization (mpr) ? a zero to one transition of this bit will cause the receive pattern generator to re-synchronize to the incoming pattern. this bit must be changed to zero and back to one for another re-synchronization to be initiated. note: a manual re-synchronization forces the receive pattern generator out of the ?sync? state. bit 2: automatic pattern resynchronization disable (aprd) ? when 0, the receive pattern generator will automatically re-synchronize to the incoming pattern if six or more times during the current 64-bit window the incoming data stream bit and the receive pattern generator output bit did not match. when 1, the receive pattern generator will not automatically re-synchronize to the incoming pattern. bit 1: transmit new pattern load (tnpl) ? a zero to one transition of this bit will cause the programmed test pattern (qrss, pts, plf[4:0}, ptf[4:0], and bsp[31:0]) to be loaded in to the transmit pattern generator. this bit must be changed to zero and back to one for another pattern to be loaded. note: qrss, pts, plf[4:0}, ptf[4:0], and bsp[31:0] must not change from the time this bit transitions from 0 to 1 until four transmit clock cycles after this bit transitions from 0 to 1. register bit port.cr1.bena must be set and the transmit clock running in order for the pattern load to take affect. bit 0: transmit pattern inversion control (tpic) ? when 0, the transmit outgoing data stream is not altered. when 1, the transmit outgoing data stream is inverted. register name: bert.pcr register description: bert pattern configuration register register address: (0,2,4,6)62h bit # 15 14 13 12 11 10 9 8 name -- -- -- ptf4 ptf3 ptf2 ptf1 ptf0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- qrss pts plf4 plf3 plf2 plf1 plf0 default 0 0 0 0 0 0 0 0 bits 12 to 8: pattern tap feedback (ptf[4:0]) ? these five bits control the prbs ?tap? feedback of the pattern generator. the ?tap? feedback will be from bit y of the pattern generator (y = ptf[4:0] +1). these bits are ignored when programmed for a repetitive pattern. for a prbs signal, the feedback is an xor of bit n and bit y. bit 6: qrss enable (qrss) ? when 0, the pattern generator configuration is controlled by pts, plf[4:0], and ptf[4:0], and bsp[31:0]. when 1, the pattern generator configuration is forced to a prbs pattern with a generating polynomial of x 20 + x 17 + 1. the output of the pattern generator will be forced to one if the next 14 output bits are all zero. bit 5: pattern type select (pts) ? when 0, the pattern is a prbs pattern. when 1, the pattern is a repetitive pattern. bits 4 to 0: pattern length feedback (plf[4:0]) ? these five bits control the ?length? feedback of the pattern generator. the ?length? feedback will be from bit n of the pattern generator (n = plf[4:0] +1). for a prbs signal, the feedback is an xor of bit n and bit y. for a repetitive pattern the feedback is bit n.
ds3181/ds3182/ds3183/DS3184 249 of 389 register name: bert.spr1 register description: bert seed/pattern register #1 register address: (0,2,4,6)64h bit # 15 14 13 12 11 10 9 8 name bsp15 bsp14 bsp13 bsp12 bsp11 bsp10 bsp9 bsp8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bsp7 bsp6 bsp5 bsp4 bsp3 bsp2 bsp1 bsp0 default 0 0 0 0 0 0 0 0 bits 15 to 0: bert seed/pattern (bsp[15:0]) ? lower 16 bits of 32 bits. register description follows next register. register name: bert.spr2 register description: bert seed/pattern register #2 register address: (0,2,4,6)66h bit # 15 14 13 12 11 10 9 8 name bsp31 bsp30 bsp29 bsp28 bsp27 bsp26 bsp25 bsp24 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bsp23 bsp22 bsp21 bsp20 bsp19 bsp18 bsp17 bsp16 default 0 0 0 0 0 0 0 0 bits 15 to 0: bert seed/pattern (bsp[31:16]) - upper 16 bits of 32 bits. bert seed/pattern (bsp[31:0]) ? these 32 bits are the programmable seed for a transmit prbs pattern, or the programmable pattern for a transmit or receive repetitive pattern. bsp(31) will be the first bit output on the transmit side for a 32-bit repetitive pattern or 32-bit length prbs. bsp(31) will be the first bit input on the receive side for a 32-bit repetitive pattern. register name: bert.teicr register description: bert transmit error in sertion control register register address: (0,2,4,6)68h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- teir2 teir1 teir0 bei tsei meims default 0 0 0 0 0 0 0 0 bits 5 to 3: transmit error insertion rate (teir[2:0]) ? these three bits indicate the rate at which errors are inserted in the output data stream. one out of every 10 n bits is inverted. teir[2:0] is the value n. a teir[2:0] value of 0 disables error insertion at a specific rate. a teir[2:0] value of 1 result in every 10 th bit being inverted. a teir[2:0] value of 2 result in every 100 th bit being inverted. error insertion starts when this register is written to with a teir[2:0] value that is non-zero. if this register is written to during the middle of an error insertion process, the new error rate will be started after the next error is inserted.
ds3181/ds3182/ds3183/DS3184 250 of 389 teir[2:0] error rate 000 disabled 001 1*10 -1 010 1*10 -2 011 1*10 -3 100 1*10 -4 101 1*10 -5 110 1*10 -6 111 1*10 -7 bit 2: bit error insertion enable (bei) ? when 0, single bit error insertion is disabled. when 1, single bit error insertion is enabled. bit 1: transmit single error insert (tsei) ? this bit causes a bit error to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0) and single bit error insertion is enabled. a 0 to 1 transition causes a single bit error to be inserted. for a second bit error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted. bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause a bit error to be inserted. register name: bert.sr register description: bert status register register address: (0,2,4,6)6ch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- pms -- bec oos bit 3: performance monitoring update status (pms) ? this bit indicates the status of the receive performance monitoring register (counters) update. this bit will transition from low to high when the update is completed. pms will be forced low when the lpmu bit (pmum = 0) or the global or port pmu bit (pmum=1) goes low. bit 1: bit error count (bec) ? when 0, the bit error count is zero. when 1, the bit error count is one or more. this bit is cleared when the user updates the bert counters via the pmu bit (bert.cr). bit 0: out of synchronization (oos) ? when 0, the receive pattern generator is synchronized to the incoming pattern. when 1, the receive pattern generator is not synchronized to the incoming pattern.
ds3181/ds3182/ds3183/DS3184 251 of 389 register name: bert.srl register description: bert status register latched register address: (0,2,4,6)6eh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- pmsl bel becl oosl bit 3: performance monitoring update status latched (pmsl) ? this bit is set when the pms bit transitions from 0 to 1. bit 2: bit error latched (bel) ? this bit is set when a bit error is detected. bit 1: bit error count latched (becl) ? this bit is set when the bec bit transitions from 0 to 1. bit 0: out of synchronization latched (oosl) ? this bit is set when the oos bit changes state. register name: bert.srie register description: bert status register interrupt enable register address: (0,2,4,6)70h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- pmsie beie becie oosie default 0 0 0 0 0 0 0 0 bit 3: performance monitoring update status interrupt enable (pmsie) ? this bit enables an interrupt if the pmsl bit is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: bit error interrupt enable (beie) ? this bit enables an interrupt if the bel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: bit error count interrupt enable (becie) ? this bit enables an interrupt if the becl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: out of synchronization interrupt enable (oosie) ? this bit enables an interrupt if the oosl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 252 of 389 register name: bert.rbecr1 register description: bert receive bit error count register #1 register address: (0,2,4,6)74h bit # 15 14 13 12 11 10 9 8 name bec15 bec14 bec13 bec12 bec11 bec10 bec9 bec8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bec7 bec6 bec5 bec4 bec3 bec2 bec1 bec0 default 0 0 0 0 0 0 0 0 bits 15 to 0: bit error count (bec[15:0]) ? lower 16 bits of 24 bits. register description follows next register. register name: bert.rbecr2 register description: bert receive bit error count register #2 register address: (0,2,4,6)76h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bec23 bec22 bec21 bec20 bec19 bec18 bec17 bec16 default 0 0 0 0 0 0 0 0 bits 7 to 0: bit error count (bec[23:16]) - upper 8-bits of register. bit error count (bec[23:0]) ? these 24 bits indicate the number of bit errors detected in the incoming data stream. this count stops incrementing when it reaches a count of ff ffffh. this bit error counter will not increment when an oos condition exists. this register is updated via the pmu signal (see section 10.4.5 ). register name: bert.rbcr1 register description: receive bit count register #1 register address: (0,2,4,6)78h bit # 15 14 13 12 11 10 9 8 name bc15 bc14 bc13 bc12 bc11 bc10 bc9 bc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bc7 bc6 bc5 bc4 bc3 bc2 bc1 bc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: bit count (bc[15:0]) ? lower 16 bits of 32 bits. register description follows next register.
ds3181/ds3182/ds3183/DS3184 253 of 389 register name: bert.rbcr2 register description: receive bit count register #2 register address: (0,2,4,6)7ah bit # 15 14 13 12 11 10 9 8 name bc31 bc30 bc29 bc28 bc27 bc26 bc25 bc24 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bc23 bc22 bc21 bc20 bc19 bc18 bc17 bc16 default 0 0 0 0 0 0 0 0 bits 15 to 0: bit count (bc[31:16]) - upper 16 bits of 32 bits. bit count (bc[31:0]) ? these 32 bits indicate the number of bits in the incoming data stream. this count stops incrementing when it reaches a count of ffff ffffh. this bit counter will not increment when an oos condition exists. this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 254 of 389 12.6 b3zs/hdb3 line encoder/decoder 12.6.1 transmit side line encoder/decoder register map the transmit side uses one register. table 12-25. transmit side b3zs/hdb3 line encoder/decoder register map address register register description (0,2,4,6)8ch line.tcr line transmit control register (0,2,4,6)8eh -- unused 12.6.1.1 register bit descriptions register name: line.tcr register description: line transmit control register register address: (0,2,4,6)8ch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- tzsd exzi bpvi tsei meims default 0 0 0 0 0 0 0 0 bit 4: transmit zero suppression encoding disable (tzsd) ? when 0, the b3zs/hdb3 encoder performs zero suppression (b3zs or hdb3) and ami encoding. when 1, zero suppression (b3zs or hdb3) encoding is disabled, and only ami encoding is performed. bit 3: excessive zero insert enable (exzi) ? when 0, excessive zero (exz) event insertion is disabled. when 1, exz event insertion is enabled. bit 2: bipolar violation insert enable (bpvi) ? when 0, bipolar violation (bpv) insertion is disabled. when 1, bpv insertion is enabled. bit 1: transmit single error insert (tsei) ? this bit causes an error of the enabled type(s) to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0). a 0 to 1 transition causes a single error to be inserted. for a second error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted. bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause an error to be inserted.
ds3181/ds3182/ds3183/DS3184 255 of 389 12.6.2 receive side line encoder/decoder register map the receive side uses six registers. table 12-26. receive side b3zs/hdb3 line encoder/decoder register map address register register description (0,2,4,6)90h line.rcr line receive control register (0,2,4,6)92h -- unused (0,2,4,6)94h line.rsr line receive status register (0,2,4,6)96h line.rsrl line receive status register latched (0,2,4,6)98h line.rsrie line receive status register interrupt enable (0,2,4,6)9ah -- unused (0,2,4,6)9ch line.rbpvcr line receive bipolar violation count register (0,2,4,6)9eh line.rexzcr line receive excessive zero count register 12.6.2.1 register bit descriptions register name: line.rcr register description: line receive control register register address: (0.2.4.6)90h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- e3cve rezsf rdzsf rzsd default 0 0 0 0 0 0 0 0 bit 3: e3 code violation enable (e3cve) ? when 0, the bipolar violation count will be a count of bipolar violations. when 1, the bipolar violation count will be a count of e3 line coding violations. note: e3 line coding violations are defined as consecutive bipolar violations of the same polarity in itu o.161. this bit is ignored in b3zs mode. bit 2: receive bpv error detection zero suppression code format (rezsf) ? when 0, bpv error detection detects a b3zs signature if a zero is followed by a bipolar violation (bpv), and an hdb3 signature if two zeros are followed by a bpv. when 1, bpv error detection detects a b3zs signature if a zero is followed by a bpv that has the opposite polarity of the bpv in the previous b3zs signature, and an hdb3 signature if two zeros are followed by a bpv that has the opposite polarity of the bpv in the previous hdb3 signature. note: immediately after a reset, this bit is ignored. the first b3zs signature is defined as a zero followed by a bpv, and the first hdb3 signature is defined as two zeros followed by a bpv. all subsequent b3zs/hdb3 signatures will be determined by the setting of this bit. note: the default setting (rezsf = 0) conforms to itu o.162. the default setting may falsely decode actual bpvs that are not codewords. it is recommended that rezsf be set to one for most applications. this setting is more robust to accurately detect codewords. bit 1: receive zero suppression decoding zero suppression code format (rdzsf) ? when 0, zero suppression decoding detects a b3zs signature if a zero is followed by a bipolar violation (bpv), and an hdb3 signature if two zeros are followed by a bpv. when 1, zero suppression decoding detects a b3zs signature if a zero is followed by a bpv that has the opposite polarity of the bpv in the previous b3zs signature, and an hdb3 signature if two zeros are followed by a bpv that has the opposite polarity of the bpv in the previous hdb3 signature. note: immediately after a reset ( drst or rst low), this bit is ignored. the first b3zs signature is defined as a zero followed by a bpv, and the first hdb3 signature is defined as two zeros followed by a bpv. all subsequent b3zs/hdb3 signatures will be determined by the setting of this bit.
ds3181/ds3182/ds3183/DS3184 256 of 389 bit 0: receive zero suppression decoding disable (rzsd) ? when 0, the b3zs/hdb3 decoder performs zero suppression (b3zs or hdb3) and ami decoding. when 1, zero suppression (b3zs or hdb3) decoding is disabled, and only ami decoding is performed. register name: line.rsr register description: line receive status register register address: (0.2.4.6)94h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- exzc -- bpvc los bit 3: excessive zero count (exzc) ? when 0, the excessive zero count is zero. when 1, the excessive zero count is one or more. bit 1: bipolar violation count (bpvc) ? when 0, the bipolar violation count is zero. when 1, the bipolar violation count is one or more. bit 0: loss of signal (los) ? when 0, the receive line is not in a loss of signal (los) condition. when 1, the receive line is in an los condition. see section 10.14.5 note: when zero suppression (b3zs or hdb3) decoding is disabled, the los condition is cleared, and cannot be detected. register name: line.rsrl register description: line receive status register latched register address: (0.2.4.6)96h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- zscdl exzl exzcl bpvl bpvcl losl bit 5: zero suppression code detect latched (zscdl) ? this bit is set when a b3zs or hdb3 signature is detected. bit 4: excessive zero latched (exzl) ? this bit is set when an excessive zero event is detected on the incoming bipolar data stream. bit 3: excessive zero count latched (exzcl) ? this bit is set when the line.rsr.exzc bit transitions from zero to one. bit 2: bipolar violation latched (bpvl) ? this bit is set when a bipolar violation (or e3 lcv if enabled) is detected on the incoming bipolar data stream. bit 1: bipolar violati on count latched (bpvcl) ? this bit is set when the line.rsr.bpvc bit transitions from zero to one. bit 0: loss of signal change latched (losl) ? this bit is set when the line.rsr.los bit changes state.
ds3181/ds3182/ds3183/DS3184 257 of 389 register name: line.rsrie register description: line receive status register interrupt enable register address: (0.2.4.6)98h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- zscdie exzie exzcie bpvie bpvcie losie default 0 0 0 0 0 0 0 0 bit 5: zero suppression code detect interrupt enable (zscdie) ? this bit enables an interrupt if the line.rsrl .zscdl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: excessive zero interrupt enable (exzie) ? this bit enables an interrupt if the line.rsrl .exzl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: excessive zero count interrupt enable (exzcie) ? this bit enables an interrupt if the line.rsrl .exzcl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: bipolar violation interrupt enable (bpvie) ? this bit enables an interrupt if the line.rsrl .bpvl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: bipolar violation count interrupt enable (bpvcie) ? this bit enables an interrupt if the line.rsrl .bpvcl bit and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: loss of signal interrupt enable (losie) ? this bit enables an interrupt if the line.rsrl .losl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: line.rbpvcr register description: line receive bipolar violation count register register address: (0.2.4.6)9ch bit # 15 14 13 12 11 10 9 8 name bpv15 bpv14 bpv13 bpv12 bpv11 bpv10 bpv9 bpv8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bpv7 bpv6 bpv5 bpv4 bpv3 bpv2 bpv1 bpv0 default 0 0 0 0 0 0 0 0 bits 15 to 0: bipolar violation count (bpv[15:0]) ? these 16 bits indicate the number of bipolar violations detected on the incoming bipolar data stream. this register is updated via the pmu signal (see section 10.4.5 )
ds3181/ds3182/ds3183/DS3184 258 of 389 register name: line.rexzcr register description: line receive excessive zero count register register address: (0.2.4.6)9eh bit # 15 14 13 12 11 10 9 8 name exz15 exz14 exz13 exz12 exz11 exz10 exz9 exz8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name exz7 exz6 exz5 exz4 exz3 exz2 exz1 exz0 default 0 0 0 0 0 0 0 0 bits 15 to 0: excessive zero count (exz[15:0]) ? these 16 bits indicate the number of excessive zero conditions detected on the incoming bipolar data stream. this register is updated via the pmu signal (see section 10.4.5 )
ds3181/ds3182/ds3183/DS3184 259 of 389 12.7 hdlc 12.7.1 hdlc transmit side register map the transmit side uses five registers. table 12-27. transmit side hdlc register map address register register description (0,2,4,6)a0h hdlc.tcr hdlc transmit control register (0,2,4,6)a2h hdlc.tfdr hdlc transmit fifo data register (0,2,4,6)a4h hdlc.tsr hdlc transmit status register (0,2,4,6)a6h hdlc.tsrl hdlc transmit status register latched (0,2,4,6)a8h hdlc.tsrie hdlc transmit status register interrupt enable (0,2,4,6)aah -- unused (0,2,4,6)ach -- unused (0,2,4,6)aeh -- unused 12.7.1.1 register bit descriptions register name: hdlc.tcr register description: hdlc transmit control register register address: (0,2,4,6)a0h bit # 15 14 13 12 11 10 9 8 name -- -- -- tdal4 tdal3 tdal2 tdal1 tdal0 default 0 0 0 0 1 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- tpsd tfei tifv tbre tdie tfpd tfrst default 0 0 0 0 0 0 0 0 bits 12 to 8: transmit hdlc data storage available level (tdal[4:0]) ? these five bits indicate the minimum number of bytes ([tdal*8]+1) that must be available for storage (do not contain data) in the transmit fifo for hdlc data storage to be available. for example, a value of 21 (15h) results in hdlc data storage being available (thda = 1) when the transmit fifo has 169 (a9h) bytes or more available for storage, and hdlc data storage not being available (thda = 0) when the transmit fifo has 168 (a8h) bytes or less available for storage. default value (after reset) is 128 bytes minimum available. bit 6: transmit packet start disable (tpsd) ? when 0, the transmit packet processor will continue sending packets after the current packet end. when 1, the transmit packet processor will stop sending packets after the current packet end. bit 5: transmit fcs error insertion (tfei) ? when 0, the calculated fcs (inverted crc-16) is appended to the packet. when 1, the inverse of the calculated fcs (non-inverted crc-16) is appended to the packet causing a fcs error. this bit is ignored if transmit fcs processing is disabled (tfpd = 1). bit 4: transmit inter -frame fill value (tifv) ? when 0, inter-frame fill is done with the flag sequence (7eh). when 1, inter-frame fill is done with all ?1?s. bit 3: transmit bit reordering enable (tbre) ? when 0, bit reordering is disabled (the first bit transmitted is the lsb of the transmit fifo data byte tfd[0]). when 1, bit reordering is enabled (the first bit transmitted is the msb of the transmit fifo data byte tfd[7]).
ds3181/ds3182/ds3183/DS3184 260 of 389 bit 2: transmit data inversion enable (tdie) ? when 0, the outgoing data is directly output from packet processing. when 1, the outgoing data is inverted before being output from packet processing. bit 1: transmit fcs processing disable (tfpd) ? this bit controls whether or not a fcs is calculated and appended to the end of each packet. when 0, the calculated fcs bytes are appended to the end of the packet. when 1, the packet is transmitted without a fcs. bit 0: transmit fifo reset (tfrst) ? when 0, the transmit fifo will resume normal operations, however, data is discarded until a start of packet is received after ram power-up is completed. when 1, the transmit fifo is emptied, any transfer in progress is halted, the fifo ram is powered down, and all incoming data is discarded (all tfdr register writes are ignored). register name: hdlc.tfdr register description: hdlc transmit fifo data register register address: (0,2,4,6)a2h bit # 15 14 13 12 11 10 9 8 name tfd7 tfd6 tfd5 tfd4 tfd3 tfd2 tfd1 tfd0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tdpe default 0 0 0 0 0 0 0 0 note: the fifo data and status are loaded into the transmit fifo when the transmit fifo data (tfd[7:0]) is written (upper byte write). when read, the value of these bits is always zero. bits 15 to 8: transmit fifo data (tfd[7:0]) ? these eight bits are the packet data to be stored in the transmit fifo. tfd[7] is the msb, and tfd[0] is the lsb. if bit reordering is disabled, tfd[0] is the first bit transmitted, and tfd[7] is the last bit transmitted. if bit reordering is enabled, tfd[7] is the first bit transmitted, and tfd[0] is the last bit transmitted. bit 0: transmit fifo data packet end (tdpe) ? when 0, the transmit fifo data is not a packet end. when 1, the transmit fifo data is a packet end. register name: hdlc.tsr register description: hdlc transmit status register register address: (0,2,4,6)a4h bit # 15 14 13 12 11 10 9 8 name -- -- tffl5 tffl4 tffl3 tffl2 tffl1 tffl0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- tff tfe thda bits 13 to 8: transmit fifo fill level (tffl[5:0]) ? these six bits indicate the number of eight byte groups available for storage (do not contain data) in the transmit fifo. e.g., a value of 21 (15h) indicates the fifo has 168 (a8h) to 175 (afh) bytes are available for storage. bit 2: transmit fifo full (tff) ? when 0, the transmit fifo contains 255 or less bytes of data. when 1, the transmit fifo is full. bit 1: transmit fifo empty (tfe) ? when 0, the transmit fifo contains at least one byte of data. when 1, the transmit fifo is empty. bit 0: transmit hdlc data storage available (thda) ? when 0, the transmit fifo has less storage space available in the transmit fifo than the transmit hdlc data storage available level (tdal[4:0]). when 1, the transmit fifo has the same or more storage space available than the transmit fifo hdlc data storage available level.
ds3181/ds3182/ds3183/DS3184 261 of 389 register name: hdlc.tsrl register description: hdlc transmit status register latched register address: (0,2,4,6)a6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- tfol tful tpel -- tfel thdal bit 5: transmit fifo overflow latched (tfol) ? this bit is set when a transmit fifo overflow condition occurs. bit 4: transmit fifo underflow latched (tful) ? this bit is set when a transmit fifo underflow condition occurs. an underflow condition results in a loss of data. bit 3: transmit packet end latched (tpel) ? this bit is set when an end of packet is read from the transmit fifo. bit 1: transmit fifo empty latched (tfel) ? this bit is set when the tfe bit transitions from 0 to 1. note: this bit is also set when hdlc.tcr.tfrst is deasserted. bit 0: transmit hdlc data available latched (thdal) ? this bit is set when the thda bit transitions from 0 to 1. note: this bit is also set when hdlc.tcr.tfrst is deasserted. register name: hdlc.tsrie register description: hdlc transmit status register interrupt enable register address: (0,2,4,6)a8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfoie tfuie tpeie -- tfeie thdaie default 0 0 0 0 0 0 0 0 bit 5: transmit fifo overflow interrupt enable (tfoie) ? this bit enables an interrupt if the tfol bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: transmit fifo underflow interrupt enable (tfuie) ? this bit enables an interrupt if the tful bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: transmit packet end interrupt enable (tpeie) ? this bit enables an interrupt if the tpel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: transmit fifo full interrupt enable (tffie) ? this bit enables an interrupt if the tffl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 262 of 389 bit 1: transmit fifo empty interrupt enable (tfeie) ? this bit enables an interrupt if the tfel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: transmit hdlc data avai lable interrupt enable (thdaie) ? this bit enables an interrupt if the thdal bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled 12.7.2 hdlc receive side register map the receive side uses five registers. table 12-28. receive side hdlc register map address register register description (0,2,4,6)b0h hdlc.rcr hdlc receive control register (0,2,4,6)b2h -- unused (0,2,4,6)b4h hdlc.rsr hdlc receive status register (0,2,4,6)b6h hdlc.rsrl hdlc receive status register latched (0,2,4,6)b8h hdlc.rsrie hdlc receive status register interrupt enable (0,2,4,6)bah -- unused (0,2,4,6)bch hdlc.rfdr hdlc receive fifo data register (0,2,4,6)beh -- unused 12.7.2.1 register bit descriptions register name: hdlc.rcr register description: hdlc receive control register register address: (0,2,4,6)b0h bit # 15 14 13 12 11 10 9 8 name -- -- -- rdal4 rdal3 rdal2 rdal1 rdal0 default 0 0 0 0 1 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- rbre rdie rfpd rfrst default 0 0 0 0 0 0 0 0 bits 12 to 8: receive hdlc data available level (rdal[4:0]) ? these five bits indicate the minimum number of eight byte groups that must be stored (contain data) in the receive fifo before hdlc data is considered to be available (rhda=1). for example, a value of 21 (15h) results in hdlc data being available when the receive fifo contains 168 (a8h) bytes or more. bit 3: receive bit reordering enable (rbre) ? when 0, bit reordering is disabled (the first bit received is in the lsb of the receive fifo data byte rfd[0]). when 1, bit reordering is enabled (the first bit received is in the msb of the receive fifo data byte rfd[7]). bit 2: receive data inversion enable (rdie) ? when 0, the incoming data is directly passed on for packet processing. when 1, the incoming data is inverted before being passed on for packet processing. bit 1: receive fcs processing disable (rfpd) ? when 0, fcs processing is performed (the packets have a fcs appended). when 1, fcs processing is disabled (the packets do not have a fcs appended). bit 0: receive fifo reset (rfrst) ? when 0, the receive fifo will resume normal operations, however, data is discarded until a start of packet is received after ram power-up is completed. when 1, the receive fifo is emptied, any transfer in progress is halted, the fifo ram is powered down, the rhda bit is forced low, and all incoming data is discarded.
ds3181/ds3182/ds3183/DS3184 263 of 389 register name: hdlc.rsr register description: hdlc receive status register register address: (0,2,4,6)b4h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- rff rfe rhda bit 2: receive fifo full (rff) ? when 0, the receive fifo contains 255 or less bytes of data. when 1, the receive fifo is full. bit 1: receive fifo empty (rfe) ? when 0, the receive fifo contains at least one byte of data. when 1, the receive fifo is empty. bit 0: receive hdlc data available (rhda) ? when 0, the receive fifo contains less data than the receive hdlc data available level (rdal[4:0]). when 1, the receive fifo contains the same or more data than the receive hdlc data available level. register name: hdlc.rsrl register description: hdlc receive status register latched register address: (0,2,4,6)b6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name rfol -- -- rpel rpsl rffl -- rhdal bit 7: receive fifo overflow latched (rfol) ? this bit is set when a receive fifo overflow condition occurs. an overflow condition results in a loss of data. bit 4: receive packet end latched (rpel) ? this bit is set when an end of packet is stored in the receive fifo. bit 3: receive packet start latched (rpsl) ? this bit is set when a start of packet is stored in the receive fifo. bit 2: receive fifo full latched (rffl) ? this bit is set when the rff bit transitions from 0 to 1. bit 0: receive hdlc data available latched (rhdal) ? this bit is set when the rhda bit transitions from 0 to 1.
ds3181/ds3182/ds3183/DS3184 264 of 389 register name: hdlc.rsrie register description: hdlc receive status register interrupt enable register address: (0,2,4,6)b8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rfoie -- -- rpeie rpsie rffie -- rhdaie default 0 0 0 0 0 0 0 0 bit 7: receive fifo overflow interrupt enable (rfoie) ? this bit enables an interrupt if the rfol bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: receive packet end interrupt enable (rpeie) ? this bit enables an interrupt if the rpel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: receive packet start interrupt enable (rpsie) ? this bit enables an interrupt if the rpsl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: receive fifo full interrupt enable (rffie) ? this bit enables an interrupt if the rffl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: receive hdlc data availa ble interrupt enable (rhdaie) ? this bit enables an interrupt if the rhdal bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: hdlc.rfdr register description: hdlc receive fifo data register register address: (0,2,4,6)bch bit # 15 14 13 12 11 10 9 8 name rfd7 rfd6 rfd5 rfd4 rfd3 rfd2 rfd1 rfd0 default x x x x x x x x bit # 7 6 5 4 3 2 1 0 name -- -- -- -- rps2 rps1 rps0 rfdv default 0 0 0 0 x x x 0 note: the fifo data and status are updated when the receive fifo data (rfd[7:0]) is read (upper byte read). when this register is read eight bits at a time, a read of the lower byte will reflect the status of the next read of the upper byte, and reading the upper byte when rfdv=0 may result in a loss of data. bits 15 to 8: receive fifo data (rfd[7:0]) ? these eight bits are the packet data stored in the receive fifo. rfd[7] is the msb, and rfd[0] is the lsb. if bit reordering is disabled, rfd[0] is the first bit received, and rfd[7] is the last bit received. if bit reordering is enabled, rfd[7] is the first bit received, and rfd[0] is the last bit received.
ds3181/ds3182/ds3183/DS3184 265 of 389 bits 3 to 1: receive packet status (rps[2:0]) ? these three bits indicate the status of the received packet and packet data. 000 = packet middle 001 = packet start. 010 = reserved 011 = reserved 100 = packet end: good packet 101 = packet end: fcs errored packet. 110 = packet end: invalid packet (a non-integer number of bytes). 111 = packet end: aborted packet. bit 0: receive fifo data valid (rfdv) ? when 0, the receive fifo data (rfd[7:0]) is invalid (the receive fifo is empty). when 1, the receive fifo data (rfd[7:0]) is valid.
ds3181/ds3182/ds3183/DS3184 266 of 389 12.8 feac controller 12.8.1 feac transmit side register map the transmit side uses five registers. table 12-29. feac transmit side register map address register register description (0,2,4,6)c0h feac.tcr feac transmit control register (0,2,4,6)c2h feac.tfdr feac transmit data register (0,2,4,6)c4h feac.tsr feac transmit status register (0,2,4,6)c6h feac.tsrl feac transmit status register latched (0,2,4,6)c8h feac.tsrie feac transmit status register interrupt enable (0,2,4,6)cah -- unused (0,2,4,6)cch -- unused (0,2,4,6)ceh -- unused 12.8.1.1 register bit descriptions register name: feac.tcr register description: feac transmit control register register address: (0,2,4,6)c0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 1 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- tfcl tfs1 tfs0 default 0 0 0 0 0 0 0 0 bit 2: transmit feac codeword load (tfcl) ? a 0 to 1 transition on this bit loads the transmit feac processor mode select bits (tfs[1:0]), and transmit feac codes (tfca[5:0] and tfcb[5:0]). note: whenever a feac codeword is loaded, any current feac codeword transmission in progress will be immediately halted, and the new feac codeword transmission will be started based on the new values for tfs[1:0], tfca[5:0], and tfcb[5:0].. bits 1 to 0: transmit feac codeword select (tfs[1:0]) ? these two bits control the transmit feac processor mode. the tfcl bit loads the mode set by this bit. 00 = idle (all ones) 01 = single code (send code tfca ten times and send all ones) 10 = dual code (send code tfca ten times, send code tfcb ten times, and send all ones) 11 = continuous code (send code tfca continuously)
ds3181/ds3182/ds3183/DS3184 267 of 389 register name: feac.tfdr register description: transmit feac data register register address: (0,2,4,6)c2h bit # 15 14 13 12 11 10 9 8 name -- -- tfcb5 tfcb4 tf cb3 tfcb2 tfcb1 tfcb0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfca5 tfca4 tf ca3 tfca2 tfca1 tfca0 default 0 0 0 0 0 0 0 0 bits 13 to 8: transmit feac code b (tfcb[5:0]) ? these six bits are the transmit feac code b data to be stored inserted into codeword b. tfcb[5] is the lsb (last bit transmitted) of the feac code (c[6]), and tfcb[0] is the msb (first bit transmitted) of the feac code (c[1]). bits 5 to 0: transmit feac code a (tfca[5:0]) ? these six bits are the transmit feac code a data to be stored inserted into codeword a. tfca[5] is the lsb (last bit transmitted) of the feac code (c[6]), and tfca[0] is the msb (first bit transmitted) of the feac code (c[1]). register name: feac.tsr register description: feac transmit status register register address: (0,2,4,6)c4h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tfi bit 0: transmit feac idle (tfi) ? when 0, the transmit feac processor is sending a feac codeword. when 1, the transmit feac processor is sending an idle signal (all ones). register name: feac.tsrl register description: feac transmit status register latched register address: (0,2,4,6)c6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tfil bit 0: transmit feac idle latched (tfil) ? this bit is set when the tfi bit transitions from 0 to 1. note: immediately after a reset, this bit will be set to one.
ds3181/ds3182/ds3183/DS3184 268 of 389 register name: feac.tsrie register description: feac transmit status register interrupt enable register address: (0,2,4,6)c8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tfiie default 0 0 0 0 0 0 0 0 bit 0: transmit feac idle interrupt enable (tfiie) ? this bit enables an interrupt if the tfil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled 12.8.2 feac receive side register map the receive side uses five registers. table 12-30. feac receive side register map address register register description (0,2,4,6)d0h feac.rcr feac receive control register (0,2,4,6)d2h -- unused (0,2,4,6)d4h feac.rsr feac receive status register (0,2,4,6)d6h feac.rsrl feac receive status register latched (0,2,4,6)d8h feac.rsrie feac receive status register interrupt enable (0,2,4,6)dah -- unused (0,2,4,6)dch feac.rfdr feac receive fifo data register (0,2,4,6)deh -- unused 12.8.2.1 register bit descriptions register name: feac.rcr register description: feac receive control register register address: (0,2,4,6)d0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 1 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- rfr default 0 0 0 0 0 0 0 0 bit 0: receive feac reset (rfr) ?when 0, the receive feac processor and receive feac fifo will resume normal operations. when 1, the receive feac controller is reset. the feac fifo is emptied, any transfer in progress is halted, and all incoming data is discarded.
ds3181/ds3182/ds3183/DS3184 269 of 389 register name: feac.rsr register description: feac receive status register register address: (0,2,4,6)d4h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- rffe -- rfcd rfi bit 3: receive feac fifo empty (rffe) ? when 0, the receive fifo contains at least one code. when 1, the receive fifo is empty. bit 1: receive feac codeword detect (rfcd) ? when 0, the receive feac processor is not currently receiving a feac codeword. when 1, the receive feac processor is currently receiving a feac codeword. bit 0: receive feac idle (rfi) ? when 0, the receive feac processor is not receiving a feac idle signal (all ones). when 1, the receive feac processor is receiving a feac idle signal. register name: feac.rsrl register description: feac receive status register latched register address: (0,2,4,6)d6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- rffol rfcdl rfil bit 2: receive feac fifo overflow latched (rffol) ? this bit is set when a receive fifo overflow condition occurs. an overflow condition results in a loss of data. bit 1: receive feac codeword detect latched (rfcdl) ? this bit is set when the rfcd bit transitions from 0 to 1. bit 0: receive feac idle latched (rfil) ? this bit is set when the rfi bit transitions from 0 to 1. note: immediately after a reset, this bit will be set to one. register name: feac.rsrie register description: feac receive status register interrupt enable register address: (0,2,4,6)d8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- rffoie rfcdie rfiie default 0 0 0 0 0 0 0 0 bit 2: receive feac fifo overflow interrupt enable (rffoie) ? this bit enables an interrupt if the rffol bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 270 of 389 bit 1: receive feac codeword de tect interrupt enable (rfcdie) ? this bit enables an interrupt if the rfcdl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: receive feac idle interrupt enable (rfiie) ? this bit enables an interrupt if the rfil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: feac.rfdr register description: feac receive fifo data register register address: (0,2,4,6)dch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rffi -- rff5 rff4 rff3 rff2 rff1 rff0 default 0 0 0 0 0 0 0 0 bit 7: receive feac fifo data invalid (rffi) ? when 0, the receive fifo data (rff[5:0]) is valid. when 1, the receive fifo data is invalid (receive fifo is empty). bits 5 to 0: receive feac fifo data (rff[5:0]) ? these six bits are the feac code data stored in the receive fifo. rff[5] is the lsb (last bit received) of the feac code (c[6]), and rff[0] is the msb (first bit received) of the feac code (c[1]). the receive feac fifo data (rff[5:0]) is updated when it is read (lower byte read).
ds3181/ds3182/ds3183/DS3184 271 of 389 12.9 trail trace 12.9.1 trail trace transmit side the transmit side uses three registers. table 12-31. transmit side trail trace register map address register register description (0,2,4,6)e8h tt.tcr trail trace transmit control register (0,2,4,6)eah tt.ttiar trail trace transmit identifier address register (0,2,4,6)ech tt.tir trail trace transmit identifier register (0,2,4,6)eeh -- unused 12.9.1.1 register bit descriptions register name: tt.tcr register description: trail trace transmit control register register address: (0,2,4,6)e8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- reserved tmad tidle tdie tbre default 0 0 0 0 0 0 0 0 bit 3: transmit multiframe alignment insertion disable (tmad) ? when 0, multiframe alignment signal (mas) insertion is enabled, and the first bit transmitted of each trail trace byte is overwritten with an mas bit. when 1, mas insertion is disabled, and the trail trace bytes from the transmit data storage are output without being modified. bit 2: transmit trail trace identifier idle (tidle) ? when 0, the programmed transmit trail trace identifier will be transmitted. when 1, all zeros will be transmitted. bit 1: transmit data inversion enable (tdie) ? when 0, the outgoing data from trail trace processing is output directly. when 1, the outgoing data from trail trace processing is inverted before being output. bit 0: transmit bit reordering enable (tbre) ? when 0, bit reordering is disabled (the first bit transmitted is the msb tt.tir .ttd[7] of the byte). when 1, bit reordering is enabled (the first bit transmitted is the lsb tt.tir .ttd[0] of the byte).
ds3181/ds3182/ds3183/DS3184 272 of 389 register name: tt.ttiar register description: trail trace transmit identifier address register register address: (0,2,4,6)eah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- reserved reserved ttia3 ttia2 ttia1 ttia0 default 0 0 0 0 0 0 0 0 bits 3 to 0: transmit trail trace identifier address (ttia[3:0]) ? these four bits indicate the transmit trail trace identifier byte to be read/written by the next memory access. address 0h indicates the first byte of the transmit trail trace identifier. note: the value of these bits increments with each transmit trail trace identifier memory access (when these bits are fh, a memory access will return them to 0h). register name: tt.tir register description: trail trace transmit identifier register register address: (0,2,4,6)ech bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name ttd7 ttd6 ttd5 ttd4 ttd3 ttd2 ttd1 ttd0 default 0 0 0 0 0 0 0 0 bits 7 to 0: transmit trail trace identifier data (ttd[7:0]) ? these eight bits are the transmit trail trace identifier data. the transmit trail trace identifier address will be incremented whenever these bits are read or written (when address location fh is read or written, the address will return to 0h). 12.9.2 trail trace receive side register map the receive side uses seven registers. table 12-32. trail trace receive side register map address register register description (0,2,4,6)f0h tt.rcr trail trace receive control register (0,2,4,6)f2h tt.rtiar trail trace receive identifier address register (0,2,4,6)f4h tt.rsr trail trace receive status register (0,2,4,6)f6h tt.rsrl trail trace receive status register latched (0,2,4,6)f8h tt.rsrie trail trace receive status register interrupt enable (0,2,4,6)fah -- unused (0,2,4,6)fch tt.rir trail trace receive identifier register (0,2,4,6)feh tt.eir trail trace expected identifier register
ds3181/ds3182/ds3183/DS3184 273 of 389 12.9.2.1 register bit descriptions register name: tt.rcr register description: trail trace receive control register register address: (0,2,4,6)f0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- reserved reserved rmad retce rdie rbre default 0 0 0 0 0 0 0 0 bit 3: receive multiframe alignment disable (rmad) ? when 0, multiframe alignment is performed. when 1, multiframe alignment is disabled and the trail trace bytes are stored starting with a random byte. bit 2: receive expected trail trace comparison enable (retce) ? when 0, expected trail trace comparison is disabled. when 1, expected trail trace comparison is performed. note: when the rmad bit is one, expected trail trace comparison is disabled regardless of the setting of this bit. bit 1: receive data inversion enable (rdie) ? when 0, the incoming data is directly passed on for trail trace processing. when 1, the incoming data is inverted before being passed on for trail trace processing. bit 0: receive bit reordering enable (rbre) ? when 0, bit reordering is disabled (the first bit received is the msb tt.rir .rtd[7] of the byte). when 1, bit reordering is enabled (the first bit received is the lsb tt.rir .rtd[0] of the byte). register name: tt.rtiar register description: trail trace receive identifier address register register address: (0,2,4,6)f2h bit # 15 14 13 12 11 10 9 8 name -- -- reserved reserved etia3 etia2 etia1 etia0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- reserved reserved rtia3 rtia2 rtia1 rtia0 default 0 0 0 0 0 0 0 0 bits 11 to 8: expected trail trace identifier address (etia[3:0]) ? these four bits indicate the expected trail trace identifier byte to be read/written by the next memory access. address 0h indicates the first byte of the expected trail trace identifier. note: the value of these bits increments with each expected trail trace identifier memory access (when these bits are fh, a memory access will return them to 0h). bits 3 to 0: receive trail trace identifier address (rtia[3:0]) ? these four bits indicate the receive trail trace identifier byte to be read by the next memory access. address 0h indicates the first byte of the receive trail trace identifier. note: the value of these bits increments with each receive trail trace identifier memory access (when these bits are fh, a memory access will return them to 0h).
ds3181/ds3182/ds3183/DS3184 274 of 389 register name: tt.rsr register description: trail trace receive status register register address: (0,2,4,6)f4h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- rtim rtiu ridl bit 2: receive trail trace identifier mismatch (rtim) 0 = received and expected trail trace identifiers match. 1 = received and expected trail trace identifiers do not match; trail trace identifier mismatch (tim) declared. bit 1: receive trail trace identifier unstable (rtiu) 0 = received trail trace identifier is not unstable 1 = received trail trace identifier is in an unstable condition (tiu); tiu is declared when eight consecutive trail trace identifiers are received that do not match either the receive trail trace identifier or the previously stored current trail trace identifier. bit 0: receive trail trace identifier idle (ridl) 0 = received trail trace identifier is not in idle condition. 1 = received trail trace identifier is in idle condition. idle condition is declared upon the reception of an all zeros trail trace identifier five consecutive times. register name: tt.rsrl register description: trail trace receive status register latched register address: (0,2,4,6)f6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- rticl rtiml rtiul ridll bit 3: receive trail trace identifier change latched (rticl) ? this bit is set when the receive trail trace identifier is updated. bit 2: receive trail trace identifier mismatch latched (rtiml) ? this bit is set when the tt.rsr .rtim bit transitions from 0 to 1. bit 1: receive trail trace identifier unstable latched (rtiul) ? this bit is set when the tt.rsr .rtiu bit transitions from 0 to 1. bit 0: receive trail trace identifier idle latched (ridll) ? this bit is set when the tt.rsr .ridl bit transitions from 0 to 1.
ds3181/ds3182/ds3183/DS3184 275 of 389 register name: tt.rsrie register description: trail trace receive status register interrupt enable register address: (0,2,4,6)f8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- rticie rtimie rtiuie ridlie default 0 0 0 0 0 0 0 0 bit 3: receive trail trace identifier change interrupt enable (rticie) ? this bit enables an interrupt if the tt.rsrl .rticl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: receive trail trace identifier mismatch interrupt enable (rtimie) ? this bit enables an interrupt if the tt.rsrl .rtiml bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: receive trail trace identifier unstable interrupt enable (rtiuie) ? this bit enables an interrupt if the tt.rsrl .rtiul bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: receive trail trace identifier idle interrupt enable (ridlie) ? this bit enables an interrupt if the tt.rsrl .ridll bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: tt.rir register description: trail trace receive identifier register register address: (0,2,4,6)fch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rtd7 rtd6 rtd5 rtd4 rtd3 rtd2 rtd1 rtd0 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive trail trace identifier data (rtd[7:0]) ? these eight bits are the receive trail trace identifier data. the receive trail trace identifier address will be incremented whenever these bits are read (when byte fh is read, the address will return to 0h).
ds3181/ds3182/ds3183/DS3184 276 of 389 register name: tt.eir register description: trail trace expected identifier register register address: (0,2,4,6)feh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name etd7 etd6 etd5 etd4 etd3 etd2 etd1 etd0 default 0 0 0 0 0 0 0 0 bits 7 to 0: expected trail trace identifier data (etd[7:0]) ? these eight bits are the expected trail trace identifier data. the expected trail trace identifier address will be incremented whenever these bits are read or written (when byte fh is read or written, the address will return to 0h).
ds3181/ds3182/ds3183/DS3184 277 of 389 12.10 ds3/e3 framer 12.10.1 transmit ds3 the transmit ds3 uses two registers. table 12-33. transmit ds3 framer register map address register register description (1,3,5,7)18h t3.tcr t3 transmit control register (1,3,5,7)1ah t3.teir t3 transmit error insertion register (1,3,5,7)1ch -- reserved (1,3,5,7)1eh -- reserved 12.10.1.1 register bit descriptions register name: t3.tcr register description: t3 transmit control register register address: (1,3,5,7)18h bit # 15 14 13 12 11 10 9 8 name -- -- -- pbge tidle cbgd -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfebe afebed trdi ardid tfgc tais default 0 0 0 0 0 0 0 0 bit 12: p-bit generation enable (pbge) ? when 0, transmit frame processor p-bit generation is disabled. if transmit frame generation is also disabled, the p-bit overhead periods in the incoming ds3 signal will be passed through to overhead insertion. when 1, transmit frame processor p-bit generation is enabled. the p-bit overhead periods in the incoming ds3 signal will be overwritten even if transmit frame generation is disabled bit 11: transmit ds3 idle signal (tidle) ? 0 = transmit ds3 idle signal is not inserted 1 = transmit ds3 idle signal is inserted into the ds3 frame. bit 10: c-bit generation disable (cbgd) (m23 mode only) ? when 0, transmit frame processor c-bit generation is enabled. the c-bit overhead periods in the incoming m23 ds3 signal will be overwritten with zeros. when 1, transmit frame processor c-bit generation is dis abled. the c-bit overhead periods in the incoming m23 ds3 signal will be treated as payload, and passed through to overhead insertion. this bit is ignored in c-bit ds3 mode. note: if cbgd = 1, port.cr1.nad must also be set to 1. bit 5: transmit febe error (tfebe) ? when automatic far-end block error generation is defeated (afebed = 1), the inverse of this bit is inserted into the bits c 41 , c 42 , and c 43 . note: a far-end block error value of zero (tfebe=1) indicates a far-end block error. this bit is ignored in m23 ds3 mode. bit 4: automatic febe defeat (afebed) ? when 0, a far-end block error is automatically generated based upon the receive parity errors. when 1, a far-end block error is inserted from the register bit tfebe. this bit is ignored in m23 ds3 mode. bit 3: transmit rdi alarm (trdi) ? when automatic rdi generation is defeated (ardid = 1), the inverse of this bit is inserted into the x-bits (x 1 and x 2 ). note: an rdi value of zero (trdi=1) indicates an alarm.
ds3181/ds3182/ds3183/DS3184 278 of 389 bit 2: automatic rdi defeat (ardid) ? when 0, the rdi is automatically generated based received ds3 alarms. when 1, the rdi is inserted from the register bit trdi. bit 1: transmit frame generation control (tfgc) ? when this bit is zero, the transmit frame processor frame generation is enabled. the ds3 overhead positions in the incoming ds3 payload will be overwritten with the internally generated ds3 overhead. when this bit is one, the transmit frame processor frame generation is disabled. the ds3 overhead positions in the incoming ds3 payload will be passed through to error insertion. note: frame generation will still overwrite the p-bits if pbge = 1. also, the ds3 overhead periods can still be overwritten by overhead insertion. bit 0: transmit alarm indication signal (tais) ? 0 = transmit alarm indication signal is not inserted 1 = transmit alarm indication signal is inserted into data stream payload register name: t3.teir register description: t3 transmit error insertion register register address: (1,3,5,7)1ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- ccpeie cpei cfbeie fbei default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name reserved cpeie pei feic1 feic0 fei tsei meims default 0 0 0 0 0 0 0 0 bit 11: continuous c-bit parity error insertion enable (ccpeie) ? when 0, single c-bit parity error insertion is enabled. when 1, continuous c-bit parity error insertion is enabled, and c-bit parity errors will be transmitted continuously if cpei is high. bit 10: c-bit parity error insertion enable (cpei) ? when 0, c-bit parity error insertion is disabled. when 1, c-bit parity error insertion is enabled. bit 9: continuous far-end block error insertion enable (cfbeie) ? when 0, single far-end block error insertion is enabled. when 1, continuous far-end block error insertion is enabled, and far-end block errors will be transmitted continuously if fbei is high. bit 8: far-end block error insertion enable (fbei) ? when 0, far-end block error insertion is disabled. when 1, far-end block error insertion is enabled. bit 6: continuous p-bit parity error insertion enable (cpeie) ? when 0, single p-bit parity error insertion is enabled. when 1, continuous p-bit parity error insertion is enabled, and p-bit parity errors will be transmitted continuously if pei is high. bit 5: p-bit parity error insertion enable (pei) ? when 0, p-bit parity error insertion is disabled. when 1, p-bit parity error insertion is enabled. bits 4 to 3: framing error insertion control (feic[1:0]) ? these two bits control the framing error event to be inserted. 00 = f-bit error. 01 = m-bit error. 10 = sef error. 11 = oomf error. bit 2: framing error insertion enable (fei) ? when 0, framing error insertion is disabled. when 1, framing error insertion is enabled.
ds3181/ds3182/ds3183/DS3184 279 of 389 bit 1: transmit single error insert (tsei) ? this bit causes an error of the enabled type(s) to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0). a 0 to 1 transition causes a single error to be inserted. for a second error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted. bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause an error to be inserted. 12.10.2 receive ds3 register map the receive ds3 uses 11 registers. two registers are shared for c-bit and m23 ds3 modes. the m23 ds3 mode does not use the rfeber or rcpecr count registers. table 12-34. receive ds3 framer register map address register register description (1,3,5,7)20h t3.rcr t3 receive control register (1,3,5,7)22h -- reserved (1,3,5,7)24h t3.rsr1 t3 receive status register #1 (1,3,5,7)26h t3.rsr2 t3 receive status register #2 (1,3,5,7)28h t3.rsrl1 t3 receive status register latched #1 (1,3,5,7)2ah t3.rsrl2 t3 receive status register latched #2 (1,3,5,7)2ch t3.rsrie1 t3 receive status register interrupt enable #1 (1,3,5,7)2eh t3.rsrie2 t3 receive status register interrupt enable #2 (1,3,5,7)30h -- reserved (1,3,5,7)32h -- reserved (1,3,5,7)34h t3.rfecr t3 receive framing error count register (1,3,5,7)36h t3.rpecr t3 receive p-bit parity error count register (1,3,5,7)38h t3.rfbecr t3 receive far-end block error count register (1,3,5,7)3ah t3.rcpecr t3 receive c-bit parity error count register (1,3,5,7)3ch -- unused (1,3,5,7)3eh -- unused 12.10.2.1 register bit descriptions register name: t3.rcr register description: t3 receive control register register address: (1,3,5,7)20h bit # 15 14 13 12 11 10 9 8 name reserved covhd maod md aisi aaisd ecc fecc1 fecc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name raile raild raiod raiad romd lip1 lip0 frsync default 0 0 0 0 0 0 0 0 bit 14: c-bit overhead masking disable (covhd) ? when 0, the c-bit positions will be marked as overhead (rdenn=0). when 1, the c-bit positions will be marked as data (rdenn=1). this bit is ignored in c-bit ds3 mode or when the romd bit is set to one. bit 13: multiframe alignment oof disable (maod) ? when 0, an oof condition is declared whenever an oomf or sef condition is declared. when 1, an oof condition is declared only when an sef condition is declared.
ds3181/ds3182/ds3183/DS3184 280 of 389 bit 12: manual downstream ais insertion (mdaisi) ? when 0, manual downstream ais insertion is disabled. when 1, manual downstream ais insertion is enabled. bit 11: automatic downstream ais disable (aaisd) ? when 0, the presence of a los, oof, or ais condition will cause downstream ais to be inserted. when 1, the presence of a los, oof, or ais condition will not cause downstream ais to be inserted. bit 10: error count control (ecc) ? when 0, framing errors, p-bit parity errors, c-bit parity errors, and far-end block errors will not be counted if an oof or ais condition is present. p-bit parity errors, c-bit parity errors, and far- end block errors will also not be counted during the ds3 frame in which an oof condition is terminated, and the next ds3 frame. when 1, framing errors, p-bit parity errors, c-bit parity errors, and far-end block errors will be counted regardless of the presence of an oof or ais condition. bits 9 to 8: framing error count control (fecc[1:0]) ? these two bits control the type of framing error events that are counted. 00 = count oof occurrences (counted regardless of the setting of the ecc bit). 01 = count m bit and f bit errors. 10 = count only f bit errors. 11 = count only m bit errors. bit 7: receive alarm indication on lof enable (raile) ? when 0, an lof condition does not affect the receive alarm indication signal (rai). when 1, an lof condition will cause the transmit ds3 x-bits to be set to zero if transmit automatic rdi is enabled. bit 6: receive alarm indication on los disable (raild) ? when 0, an los condition will cause the transmit ds3 x-bits to be set to zero if transmit automatic rdi is enabled. when 1, an los condition does not affect the rai signal. bit 5: receive alarm indication on sef disable (raiod) ? when 0, an sef condition will cause the transmit ds3 x-bits to be set to zero if transmit automatic rdi is enabled. when 1, an sef condition does not affect the rai signal. bit 4: receive alarm indication on ais disable (raiad) ? when 0, an ais condition will cause the transmit ds3 x-bits to be set to zero if transmit automatic rdi is enabled. when 1, an ais condition does not affect the rai signal. bit 3: receive overhead masking disable (romd) ? when 0, the ds3 overhead positions in the outgoing ds3 payload will be marked as overhead by rdenn. when 1, the ds3 overhead positions in the outgoing ds3 payload will be marked as payload data by rdenn. when this bit is set to one, the covhd bit is ignored. bits 2 to 1: lof integration period (lip[1:0]) ? these two bits determine the oof integration period for declaring lof. 00 = oof is integrated for 3 ms before declaring lof 01 = oof is integrated for 2 ms before declaring lof 10 = oof is integrated for 1 ms before declaring lof. 11 = lof is declared at the same time as oof. bit 0: force framer re-synchronization (frsync) ? a 0 to 1 transition forces an oof, sef, and oomf condition. the bit must be cleared and set to one again to force another re-synchronization
ds3181/ds3182/ds3183/DS3184 281 of 389 register name: t3.rsr1 register description: t3 receive status register #1 register address: (1,3,5,7)24h bit # 15 14 13 12 11 10 9 8 name reserved reserved -- reserved t3fm aic idle rua1 bit # 7 6 5 4 3 2 1 0 name oomf sef -- lof rdi ais oof los bit 11: t3 framing format mismatch (t3fm) ? this bit indicates the ds3 framer is programmed for a framing format (c-bit or m23) that is different than the format indicated by the incoming ds3 signal. bit 10: application identification channel (aic) ? this bit indicates the current state of the application identification channel (aic) from the c 11 bit. aic = 1 is c-bit mode, aic = 0 is m23 mode. bit 9: ds3 idle signal (idle) ? when 0, the receive frame processor is not in a ds3 idle signal (idle) condition. when 1, the receive frame processor is in an idle condition. bit 8: receive unframed all 1?s (rua1) ? when 0, the receive frame processor is not in a receive unframed all 1?s (rua1) condition. when 1, the receive frame processor is in an rua1 condition. bit 7: out of multiframe (oomf) ? when 0, the receive frame processor is not in an out of multiframe (oomf) condition. when 1, the receive frame processor is in an oomf condition. bit 6: severely errored frame (sef) ? when 0, the receive frame processor is not in a severely errored frame (sef) condition. when 1, the receive frame processor is in an sef condition. bit 4: loss of frame (lof) ? when 0, the receive framer is not in a loss of frame (lof) condition. when 1, the receive frame processor is in an lof condition. bit 3: remote defect indication (rdi) ? this bit indicates the current state of the remote defect indication (rdi) bit 2: alarm indication signal (ais) ? when 0, the receive frame processor is not in an alarm indication signal (ais) condition. when 1, the receive frame processor is in an ais condition. bit 1: out of frame (oof) ? when 0, the receive framer is not in an out of frame (oof) condition. when 1, the receive frame processor is in an oof condition. bit 0: loss of signal (los) ? when 0, the receive framer is not in a loss of signal (los) condition. when 1, the receive framer is in an los condition. register name: t3.rsr2 register description: t3 receive status register #2 register address: (1,3,5,7)26h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- cpec fbec pec fec bit 3: c-bit parity error count (cpec) ? when 0, the c-bit parity error count is zero. when 1, the c-bit parity error count is one or more. this bit is set to zero in m23 ds3 mode. bit 2: remote error indication count (fbec) ? when 0, the remote error indication count is zero. when 1, the remote error indication count is one or more. this bit is set to zero in m23 ds3 mode. bit 1: p-bit parity error count (pec) ? when 0, the p-bit parity error count is zero. when 1, the p-bit parity error count is one or more.
ds3181/ds3182/ds3183/DS3184 282 of 389 bit 0: framing error count (fec) ? when 0, the framing error count is zero. when 1, the framing error count is one or more. the type of framing error event counted is determined by t3.rcr .fecc[1:0] register name: t3.rsrl1 register description: t3 receive status register latched #1 register address: (1,3,5,7)28h bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved reserved t3fml aicl idlel rua1l bit # 7 6 5 4 3 2 1 0 name oomfl sefl cofal lofl rail aisl oofl losl bit 11: t3 framing format mismatch latched (t3fml) ? this bit is set when the t3fm bit transitions from zero to one. bit 10: application identification channel change latched (aicl) ? this bit is set when the aic bit changes state. bit 9: ds3 idle signal change latched (idlel) ? this bit is set when the idle bit changes state. bit 8: receive unframed all 1?s change latched (rua1l) ? this bit is set when the rua1 bit changes state. bit 7: out of multiframe change latched (oomfl) ? this bit is set when the oomf bit changes state. bit 6: severely errored frame change latched (sefl) ? this bit is set when the sef bit changes state. bit 5: change of frame alignment latched (cofal) ? this bit is set when the data path frame counters are updated with a new ds3 frame alignment that is different from the previous ds3 frame alignment. bit 4: loss of frame change latched (lofl) ? this bit is set when the lof bit changes state. bit 3: remote defect indication change latched (rdil) ? this bit is set when the rdi bit changes state. bit 2: alarm indication signal change latched (aisl) ? this bit is set when the ais bit changes state. bit 1: out of frame change latched (oofl) ? this bit is set when the oof bit changes state. bit 0: loss of signal change latched (losl) ? this bit is set when the los bit changes state. register name: t3.rsrl2 register description: t3 receive status register latched #2 register address: (1,3,5,7)2ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- cpel fbel pel fel bit # 7 6 5 4 3 2 1 0 name -- -- -- -- cpecl fbecl pecl fecl bit 11: c-bit parity error latched (cpel) ? this bit is set when a c-bit parity error is detected. this bit is set to zero in m23 ds3 mode. bit 10: remote error indication latched (fbel) ? this bit is set when a far-end block error is detected. this bit is set to zero in m23 ds3 mode. bit 9: p-bit parity error latched (pel) ? this bit is set when a p-bit parity error is detected.
ds3181/ds3182/ds3183/DS3184 283 of 389 bit 8: framing error latched (fel) ? this bit is set when a framing error is detected. the type of framing error event that causes this bit to be set is determined by t3.rcr .fecc[1:0] bit 3: c-bit parity error count latched (cpecl) ? this bit is set when the cpec bit transitions from zero to one. this bit is set to zero in m23 ds3 mode. bit 2: remote error indication count latched (fbecl) ? this bit is set when the fbec bit transitions from zero to one. this bit is set to zero in m23 ds3 mode. bit 1: p-bit parity error count latched (pecl) ? this bit is set when the pec bit transitions from zero to one. bit 0: framing error count latched (fecl) ? this bit is set when the fec bit transitions from zero to one. register name: t3.rsrie1 register description: t3 receive status register interrupt enable #1 register address: (1,3,5,7)2ch bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved re served t3fmie aicie idleie rua1ie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name oomfie sefie cofaie lofie raiie aisie oofie losie default 0 0 0 0 0 0 0 0 bit 11: t3 framing format mismatch interrupt enable (t3fmie) ? this bit enables an interrupt if the t3fml bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 10: application identification channel interrupt enable (aicie) ? this bit enables an interrupt if the aicl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 9: ds3 idle signal change interrupt enable (idleie) ? this bit enables an interrupt if the idlel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 8: receive unframed all 1?s interrupt enable (rua1ie) ? this bit enables an interrupt if the rua1l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 7: out of multiframe interrupt enable (oomfie) ? this bit enables an interrupt if the oomfl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 6: severely errored frame interrupt enable (sefie) ? this bit enables an interrupt if the sefl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 284 of 389 bit 5: change of frame alignment interrupt enable (cofaie) ? this bit enables an interrupt if the cofal bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: loss of frame interrupt enable (lofie) ? this bit enables an interrupt if the lofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: remote defect indication interrupt enable (rdiie) ? this bit enables an interrupt if the rdil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: alarm indication signal interrupt enable (aisie) ? this bit enables an interrupt if the aisl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: out of frame interrupt enable (oofie) ? this bit enables an interrupt if the oofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: loss of signal interrupt enable (losie) ? this bit enables an interrupt if the losl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: t3.rsrie2 register description: t3 receive status register interrupt enable #2 register address: (1,3,5,7)2eh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- cpeie fbeie peie feie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- cpecie fbecie pecie fecie default 0 0 0 0 0 0 0 0 bit 11: c-bit parity error interrupt enable (cpeie) ? this bit enables an interrupt if the cpel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 10: remote error interrupt enable (fbeie) ? this bit enables an interrupt if the fbel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 9: p-bit parity error interrupt enable (peie) ? this bit enables an interrupt if the pel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 285 of 389 bit 8: framing error interrupt enable (feie) ? this bit enables an interrupt if the fel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: c-bit parity error count interrupt enable (cpecie) ? this bit enables an interrupt if the cpecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: far-end block error count interrupt enable (fbecie) ? this bit enables an interrupt if the fbecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: p-bit parity error count interrupt enable (pecie) ? this bit enables an interrupt if the pecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: framing error count interrupt enable (fecie) ? this bit enables an interrupt if the fecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: t3.rfecr register description: t3 receive framing error count register register address: (1,3,5,7)34h bit # 15 14 13 12 11 10 9 8 name fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: framing error count (fe[15:0]) ? these 16 bits indicate the number of framing error events on the incoming ds3 data stream. this register is updated via the pmu signal (see section 10.4.5 )
ds3181/ds3182/ds3183/DS3184 286 of 389 register name: t3.rpecr register description: t3 receive p-bit parity error count register register address: (1,3,5,7)36h bit # 15 14 13 12 11 10 9 8 name pe15 pe14 pe13 pe12 pe11 pe10 pe9 pe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: p-bit parity error count (pe[15:0]) ? these 16 bits indicate the number of p-bit parity errors detected on the incoming ds3 data stream. this register is updated via the pmu signal (see section 10.4.5 ) register name: t3.rfbecr register description: t3 receive far-end block error count register register address: (1,3,5,7)38h bit # 15 14 13 12 11 10 9 8 name fbe15 fbe14 fbe13 fbe12 fbe11 fbe10 fbe9 fbe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fbe7 fbe6 fbe5 fbe4 fbe3 fbe2 fbe1 fbe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: far-end block error count (fbe[15:0]) ? these 16 bits indicate the number of far-end block errors detected on the incoming ds3 data stream. the associated counter will not increment in m23 ds3 mode. this register is updated via the pmu signal (see section 10.4.5 ) register name: t3.rcpecr register description: t3 receive c-bit parity error count register register address: (1,3,5,7)3ah bit # 15 14 13 12 11 10 9 8 name cpe15 cpe14 cpe13 cpe12 cpe11 cpe10 cpe9 cpe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name cpe7 cpe6 cpe5 cpe4 cpe3 cpe2 cpe1 cpe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: c-bit parity error count (cpe[15:0]) ? these 16 bits indicate the number of c-bit parity errors detected on the incoming ds3 data stream. the associated counter will not increment in m23 ds3 mode. this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 287 of 389 12.10.3 transmit g.751 e3 the transmit g.751 e3 uses two registers. 12.10.3.1 register map table 12-35. transmit g.751 e3 framer register map address register register description (1,3,5,7)18h e3g751.tcr e3 g.751 transmit control register (1,3,5,7)1ah e3g751.teir e3 g.751 transmit error insertion register (1,3,5,7)1ch -- reserved (1,3,5,7)1eh -- reserved 12.10.3.2 register bit descriptions register name: e3g751.tcr register description: e3 g.751 transmit control register register address: (1,3,5,7)18h bit # 15 14 13 12 11 10 9 8 name reserved -- -- reserved reserved reserved tnbc1 tnbc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- reserved reserved tabc1 tabc0 tfgc tais default 0 0 0 0 0 0 0 0 bits 9 to 8: transmit n bit control (tnbc[1:0]) ? these two bits control the source of the n bit. 00 = 1 01 = transmit data from hdlc controller. 10 = transmit data from feac controller. 11 = 0 note: if tnbc[1:0] is 10 and tabc[1:0] is 01, both the n bit and a bit will carry the same transmit feac controller (one bit per frame period), however, the n bit and a bit in the same frame may or may not be equal. bits 3 to 2: transmit a bit control (tabc[1:0]) ? these two bits control the source of the a bit. 00 = automatically generated based upon received e3 alarms. 01 = transmit from the feac controller. 10 = 0 11 = 1 note: if tabc[1:0] is 01 and tnbc[1:0] is 10, both the a bit and n bit will carry the same transmit feac controller (one bit per frame period), however, the a bit and n bit in the same frame may or may not be equal. bit 1: transmit frame generation control (tfgc) ? when this bit is zero, the transmit frame processor frame generation is enabled. the e3 overhead positions in the incoming e3 payload will be overwritten with the internally generated e3 overhead. when this bit is one, the transmit frame processor frame generation is disabled. the e3 overhead positions in the incoming e3 payload will be passed through to error insertion. note: the e3 overhead periods can still be overwritten by overhead insertion. bit 0: transmit alarm indication signal (tais) ? when 0, the normal signal is transmitted. when 1, the output e3 data stream is forced to all ones (ais).
ds3181/ds3182/ds3183/DS3184 288 of 389 register name: e3g751.teir register description: e3 g.751 transmit error insertion register register address: (1,3,5,7)1ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved reserved reserved default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name reserved reserved reserv ed feic1 feic0 fei tsei meims default 0 0 0 0 0 0 0 0 bits 4 to 3: framing error insert control (feic[1:0]) ? these two bits control the framing error event to be inserted. 00 = single bit error in one frame. 01 = word error in one frame. 10 = single bit error in four consecutive frames. 11 = word error in four consecutive frames. bit 2: framing error insertion enable (fei) ? when 0, framing error insertion is disabled. when 1, framing error insertion is enabled. bit 1: transmit single error insert (tsei) ? this bit causes an error of the enabled type(s) to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0). a 0 to 1 transition causes a single error to be inserted. for a second error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted. bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause an error to be inserted.
ds3181/ds3182/ds3183/DS3184 289 of 389 12.10.4 receive g.751 e3 register map the receive g.751 e3 uses eight registers. table 12-36. receive g.751 e3 framer register map address register register description (1,3,5,7)20h e3g751.rcr e3 g.751 receive control register (1,3,5,7)22h -- reserved (1,3,5,7)24h e3g751.rsr1 e3 g.751 receive status register #1 (1,3,5,7)26h e3g751.rsr2 e3 g.751 receive status register #2 (1,3,5,7)28h e3g751.rsrl1 e3 g.751 receive status register latched #1 (1,3,5,7)2ah e3g751.rsrl2 e3 g.751 receive status register latched #2 (1,3,5,7)2ch e3g751.rsrie1 e3 g.751 receive status register interrupt enable #1 (1,3,5,7)2eh e3g751.rsrie2 e3 g.751 receive status register interrupt enable #2 (1,3,5,7)30h -- reserved (1,3,5,7)32h -- reserved (1,3,5,7)34h e3g751.rfecr e3 g.751 receive framing error count register (1,3,5,7)36h -- reserved (1,3,5,7)38h -- reserved (1,3,5,7)3ah -- reserved (1,3,5,7)3ch -- unused (1,3,5,7)3eh -- unused 12.10.4.1 register bit descriptions register name: e3g751.rcr register description: e3 g.751 receive control register register address: (1,3,5,7)20h bit # 15 14 13 12 11 10 9 8 name reserved reserved dls mdaisi aaisd ecc fecc1 fecc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name raile raild raiod raiad romd lip1 lip0 frsync default 0 0 0 0 0 0 0 0 bit 13: receive feac data link source (dls) ? when 0, the receive feac controller will be sourced from the n bit. when 1, the receive feac controller will be sourced from the a bit. bit 12: manual downstream ais insertion (mdaisi) ? when 0, manual downstream ais insertion is disabled. when 1, manual downstream ais insertion is enabled. bit 11: automatic downstream ais disable (aaisd) ? when 0, the presence of an los, oof, or ais condition will cause downstream ais to be inserted. when 1, the presence of an los, oof, or ais condition will not cause downstream ais to be inserted. bit 10: error count control (ecc) ? when 0, framing errors will not be counted if an oof or ais condition is present. when 1, framing errors will be counted regardless of the presence of an oof or ais condition. bits 9 to 8: framing error count control (fecc[1:0]) ? these two bits control the type of framing error events that are counted. 00 = count oof occurrences (counted regardless of the setting of the ecc bit). 01 = count each bit error in the fas (up to 10 per frame). 10 = count frame alignment signal (fas) errors (up to one per frame). 11 = reserved
ds3181/ds3182/ds3183/DS3184 290 of 389 bit 7: receive alarm indication on lof enable (raile) ? when 0, an lof condition does not affect the receive alarm indication signal (rai). when 1, an lof condition will cause the transmit e3 a bit to be set to one if transmit automatic rai is enabled. bit 6: receive alarm indication on los disable (raild) ? when 0, an los condition will cause the transmit e3 a bit to be set to one if transmit automatic rai is enabled. when 1, an los condition does not affect the rai signal. bit 5: receive alarm indication on oof disable (raiod) ? when 0, an oof condition will cause the transmit e3 a bit to be set to one if transmit automatic rai is enabled. when 1, an oof condition does not affect the rai signal. bit 4: receive alarm indication on ais disable (raiad) ? when 0, an ais condition will cause the transmit e3 a bit to be set to one if transmit automatic rai is enabled. when 1, an ais condition does not affect the rai signal. bit 3: receive overhead masking disable (romd) ? when 0, the e3 overhead positions in the outgoing e3 payload will be marked as overhead by rdenn. when 1, the e3 overhead positions in the outgoing e3 payload will be marked as data by rdenn. bits 2 to 1: lof integration period (lip[1:0]) ? these two bits determine the oof integration period for declaring lof. 00 = oof is integrated for 3 ms before declaring lof 01 = oof is integrated for 2 ms before declaring lof. 10 = oof is integrated for 1 ms before declaring lof 11 = lof is declared at the same time as oof bit 0: force framer re-synchronization (frsync) ? a 0 to 1 transition forces an oof condition at the fas check. this bit must be cleared and set to one again to force another re-synchronization register name: e3g751.rsr1 register description: e3 g.751 receive status register #1 register address: (1,3,5,7)24h bit # 15 14 13 12 11 10 9 8 name reserved reserved -- reserved reserved reserved reserved rua1 bit # 7 6 5 4 3 2 1 0 name rab rnb -- lof rdi ais oof los bit 8: receive unframed all 1?s (rua1) ? when 0, the receive frame processor is not in a receive unframed all 1?s (rua1) condition. when 1, the receive frame processor is in an rua1 condition. bit 7: receive a bit (rab) ? this bit is the integrated a bit extracted from the e3 frame. bit 6: receive n bit (rnb) ? this bit is the integrated n bit extracted from the e3 frame. bit 4: loss of frame (lof) ? when 0, the receive frame processor is not in a loss of frame (lof) condition. when 1, the receive frame processor is in an lof condition. bit 3: remote alarm indication (rdi) ? this bit indicates the current state of the remote alarm indication (rdi). bit 2: alarm indication signal (ais) ? when 0, the receive frame processor is not in an alarm indication signal (ais) condition. when 1, the receive frame processor is in an ais condition. bit 1: out of frame (oof) ? when 0, the receive frame processor is not in an out of frame (oof) condition. when 1, the receive frame processor is in an oof condition. bit 0: loss of signal (los) ? when 0, the receive loss of signal (los) input (rlos) is low. when 1, rlos is high.
ds3181/ds3182/ds3183/DS3184 291 of 389 register name: e3g751.rsr2 register description: e3 g.751 receive status register #2 register address: (1,3,5,7)26h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved reserved reserved fec bit 0: framing error count (fec) ? when 0, the framing error count is zero. when 1, the framing error count is one or more. register name: e3g751.rsrl1 register description: e3 g.751 receive status register latched #1 register address: (1,3,5,7)28h bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved reserved reserved reserved reserved rua1l bit # 7 6 5 4 3 2 1 0 name acl ncl cofal lofl rdil aisl oofl losl bit 8: receive unframed all 1?s change latched (rua1l) ? this bit is set when the rua1 bit changes state. bit 7: a bit change latched (acl) ? this bit is set when the rab bit changes state. bit 6: n bit change latched (ncl) ? this bit is set when the rnb bit changes state. bit 5: change of frame alignment latched (cofal) ? this bit is set when the data path frame counters are updated with a new frame alignment that is different from the previous frame alignment. bit 4: loss of frame change latched (lofl) ? this bit is set when the lof bit changes state. bit 3: remote alarm indication change latched (rdil) ? this bit is set when the rdi bit changes state. bit 2: alarm indication signal change latched (aisl) ? this bit is set when the ais bit changes state. bit 1: out of frame change latched (oofl) ? this bit is set when the oof bit changes state. bit 0: loss of signal change latched (losl) ? this bit is set when the los bit changes state. register name: e3g751.rsrl2 register description: e3 g.751 receive status register latched #2 register address: (1,3,5,7)2ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved reserved fel bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved reserved reserved fecl bit 8: framing error latched (fel) ? this bit is set when a framing error is detected. bit 0: framing error count latched (fecl) ? this bit is set when the fec bit transitions from zero to one.
ds3181/ds3182/ds3183/DS3184 292 of 389 register name: e3g751.rsrie1 register description: e3 g.751 receive status register interrupt enable #1 register address: (1,3,5,7)2ch bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved reserv ed reserved reserved reserved rua1ie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name acie ncie cofaie lofie rdiie aisie oofie losie default 0 0 0 0 0 0 0 0 bit 8: receive unframed all 1?s interrupt enable (rua1ie) ? this bit enables an interrupt if the rua1l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 7: a bit change interrupt enable (acie) ? this bit enables an interrupt if the acl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 6: n bit change interrupt enable (ncie) ? this bit enables an interrupt if the ncl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 5: change of frame alignment interrupt enable (cofaie) ? this bit enables an interrupt if the cofal bit and the bit in gl.isrie .psrie[4:1] that corresponds to this port are set. set. 0 = interrupt disabled 1 = interrupt enabled bit 4: loss of frame interrupt enable (lofie) ? this bit enables an interrupt if the lofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: remote alarm indication interrupt enable (rdiie) ? this bit enables an interrupt if the rdil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: alarm indication signal interrupt enable (aisie) ? this bit enables an interrupt if the aisl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: out of frame interrupt enable (oofie) ? this bit enables an interrupt if the oofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: loss of signal interrupt enable (losie) ? this bit enables an interrupt if the losl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 293 of 389 register name: e3g751.rsrie2 register description: e3 g.751 receive status register interrupt enable #2 register address: (1,3,5,7)2eh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved reserved feie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved reserved reserved fecie default 0 0 0 0 0 0 0 0 bit 8: framing error interrupt enable (feie) ? this bit enables an interrupt if the fel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: framing error count interrupt enable (fecie) ? this bit enables an interrupt if the fecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: e3g751.rfecr register description: e3 g.751 receive framing error count register register address: (1,3,5,7)34h bit # 15 14 13 12 11 10 9 8 name fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: framing error count (fe[15:0]) ? these 16 bits indicate the number of framing error events on the incoming e3 data stream. this register is updated via the pmu signal (see section 10.4.5 ) 12.10.5 transmit g.832 e3 register map the transmit g.832 e3 uses four registers. table 12-37. transmit g.832 e3 framer register map address register register description (1,3,5,7)18h e3g832.tcr e3 g.832 transmit control register (1,3,5,7)1ah e3g832.teir e3 g.832 transmit error insertion register (1,3,5,7)1ch e3g832.tmabr e3 g.832 transmit ma byte register (1,3,5,7)1eh e3g832.tngbr e3 g.832 transmit nr and gc byte register
ds3181/ds3182/ds3183/DS3184 294 of 389 12.10.5.1 register bit descriptions register name: e3g832.tcr register description: e3 g.832 transmit control register register address: (1,3,5,7)18h bit # 15 14 13 12 11 10 9 8 name reserved -- -- reserved reserved tgcc tnrc1 tnrc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfebe afebed trdi ardid tfgc tais default 0 0 0 0 0 0 0 0 bit 10: transmit gc byte control (tgcc) ? when 0, the gc byte is inserted from the transmit hdlc controller. when 1, the gc byte is inserted from the gc byte register. note: if bit tgcc is 0 and tnrc[1:0] is 01, both the gc byte and nr byte will carry the same transmit hdlc controller (eight bits per frame period), however, the gc byte and nr byte in the same frame may or may not be equal. bits 9 to 8: transmit nr byte control (tnrc[1:0]) ? these two bits control the source of the nr byte. 00 = all ones. 01 = transmit from the hdlc controller. 10 = transmit from the feac controller. 11 = nr byte register. note: if tnrc[1:0] is 01 and tgcc is 0, both the nr byte and gc byte will carry the same transmit hdlc controller (eight bits per frame period), however, the nr byte and gc byte in the same frame may or may not be equal. bit 5: transmit rei error (tfebe) ? when automatic rei generation is defeated (afebed = 1), this bit is inserted into the second bit of the ma byte. bit 4: automatic rei defeat (afebed) ? when 0, the rei is automatically generated based upon the transmit remote error indication (trei) signal. when 1, the rei is inserted from the register bit tfebe. bit 3: transmit rdi alarm (trdi) ? when automatic rdi generation is defeated (ardid = 1), this bit is inserted into the first bit of the ma byte. bit 2: automatic rdi defeat (ardid) ? when 0, the rdi is automatically generated based upon the received e3 alarms. when 1, the rdi is inserted from the register bit trdi. bit 1: transmit frame generation control (tfgc) ? when this bit is zero, the transmit frame processor frame generation is enabled. the e3 overhead positions in the incoming e3 payload will be overwritten with the internally generated e3 overhead. when this bit is one, the transmit frame processor frame generation is disabled. the e3 overhead positions in the incoming e3 payload will be passed through to error insertion. note: the e3 overhead periods can still be overwritten by overhead insertion. bit 0: transmit alarm indication signal (tais) ? when 0, the normal signal is transmitted. when 1, the e3 output data stream is forced to all ones (ais).
ds3181/ds3182/ds3183/DS3184 295 of 389 register name: e3g832.teir register description: e3 g.832 transmit error insertion register register address: (1,3,5,7)1ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved cfbeie fbei default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name pbee cpeie pei feic1 feic0 fei tsei meims default 0 0 0 0 0 0 0 0 bit 9: continuous remote error indi cation error insertion enable (cfbeie) ? when 0, single remote error indication (rei) error insertion is enabled. when 1, continuous rei error insertion is enabled, and rei errors will be transmitted continuously if febi is high. bit 8: remote error indication error insertion enable (fbei) ? when 0, rei error insertion is disabled. when 1, rei error insertion is enabled. bit 7: parity block error enable (pbee) ? when 0, a parity error is generated by inverting a single bit in the em byte. when 1, a parity error is generated by inverting all eight bits in the em byte. bit 6: continuous parity error insertion enable (cpeie) ? when 0, single parity (bip-8) error insertion is enabled. when 1, continuous parity error insertion is enabled, and parity errors will be transmitted continuously if pei is high. bit 5: parity error insertion enable (pei) ? when 0, parity error insertion is disabled. when 1, parity error insertion is enabled. bits 4 to 3: framing error control (feic[1:0]) ? these two bits control the framing error event to be inserted. 00 = single bit error in one frame. 01 = word error in one frame. 10 = single bit error in four consecutive frames. 11 = word error in four consecutive frames. bit 2: framing error insertion enable (fei) ? when 0, framing error insertion is disabled. when 1, framing error insertion is enabled. bit 1: transmit single error insert (tsei) ? this bit causes an error of the enabled type(s) to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0). a 0 to 1 transition causes a single error to be inserted. for a second error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted. bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause an error to be inserted.
ds3181/ds3182/ds3183/DS3184 296 of 389 register name: e3g832.tmabr register description: e3 g.832 transmit ma byte register register address: (1,3,5,7)1ch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tpt2 tpt1 tpt0 ttigd tti3 tti2 tti1 tti0 default 0 0 0 0 0 0 0 0 bits 7 to 5: transmit payload type (tpt[2:0]) ? these bits determines the value transmitted in the payload type (third, fourth, and fifth bits in the ma byte). bit 4: transmit timing source indicator bit generation disable (ttigd) ? when 0, the last three bits of the ma byte (ma[6:8]) are generated from the four timing source indicator bits tti[3:0]. when 1, tti[3] is ignored and tti[2:0] are directly inserted into the last three bits of the ma byte. bits 3 to 0: transmit timing source indication (tti[3:0]) ? these four bits make up the timing source indicator bits. register name: e3g832.tngbr register description: e3 g.832 transmit nr and gc byte register register address: (1,3,5,7)1eh bit # 15 14 13 12 11 10 9 8 name tgc7 tgc6 tgc5 tgc4 tgc3 tgc2 tgc1 tgc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tnr7 tnr6 tnr5 tnr4 tnr3 tnr2 tnr1 tnr0 default 0 0 0 0 0 0 0 0 bits 15 to 8: transmit gc byte (tgc[7:0]) ? these eight bits are the gc byte to be inserted into the e3 frame. bits 7 to 0: transmit nr byte (tnr[7:0]) ? these eight bits are the nr byte to be inserted into the e3 frame.
ds3181/ds3182/ds3183/DS3184 297 of 389 12.10.6 receive g.832 e3 register map the receive g.832 e3 uses 13 registers. table 12-38. receive g.832 e3 framer register map address register register description (1,3,5,7)20h e3g832.rcr e3 g.832 receive control register (1,3,5,7)22h e3g832.rmacr e3 g.832 receive ma byte control register (1,3,5,7)24h e3g832.rsr1 e3 g.832 receive status register #1 (1,3,5,7)26h e3g832.rsr2 e3 g.832 receive status register #2 (1,3,5,7)28h e3g832.rsrl1 e3 g.832 receive status register latched #1 (1,3,5,7)2ah e3g832.rsrl2 e3 g.832 receive status register latched #2 (1,3,5,7)2ch e3g832.rsrie1 e3 g.832 receive status register interrupt enable #1 (1,3,5,7)2eh e3g832.rsrie2 e3 g.832 receive status register interrupt enable #2 (1,3,5,7)30h e3g832.rmabr e3 g.832 receive ma byte register (1,3,5,7)32h e3g832.rngbr e3 g.832 receive nr and gc byte register (1,3,5,7)34h e3g832.rfecr e3 g.832 receive framing error count register (1,3,5,7)36h e3g832.rpecr e3 g.832 receive parity error count register (1,3,5,7)38h e3g832.rfber e3 g.832 receive remote error indication count register (1,3,5,7)3ah -- reserved (1,3,5,7)3ch -- unused (1,3,5,7)3eh -- unused 12.10.6.1 register bit descriptions register name: e3g832.rcr register description: e3 g.832 receive control register register address: (1,3,5,7)20h bit # 15 14 13 12 11 10 9 8 name reserved pec dls mdaisi aaisd ecc fecc1 fecc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rdile rdild rdiod rdiad romd lip1 lip0 frsync default 0 0 0 0 0 0 0 0 bit 14: parity error count (pec) ? when 0, bip-8 block errors (em byte) are detected (no more than one per frame). when 1, bip-8-bit errors are detected (up to 8 per frame). bit 13: receive hdlc data link source (dls) ? when 0, the receive hdlc data link will be sourced from the gc byte. when 1, the receive hdlc data link will be sourced from the nr byte. bit 12: manual downstream ais insertion (mdaisi) ? when 0, manual downstream ais insertion is disabled. when 1, manual downstream ais insertion is enabled. bit 11: automatic downstream ais disable (aaisd) ? when 0, the presence of an los, oof, or ais condition will cause downstream ais to be inserted. when 1, the presence of an los, oof, or ais condition will not cause downstream ais to be inserted. bit 10: error count control (ecc) ? when 0, framing errors, parity errors, and rei errors will not be counted if an oof or ais condition is present. parity errors and rei errors will also not be counted during the e3 frame in which an oof or ais condition is terminated, and the next e3 frame. when 1, framing errors, parity errors, and rei errors will be counted regardless of the presence of an oof or ais condition.
ds3181/ds3182/ds3183/DS3184 298 of 389 bits 9 to 8: framing error count control (fecc[1:0]) ? these two bits control the type of framing error events that are counted. 00 = count oof occurrences (counted regardless of the setting of the ecc bit).. 01 = count each bit error in fa1 and fa2 (up to 16 per frame). 10 = count frame alignment word (fa1 and fa2) errors (up to one per frame). 11 = count fa1 byte errors and fa2 byte errors (up to 2 per frame). bit 7: receive defect indication on lof enable (rdile) ? when 0, an lof condition does not affect the receive defect indication signal (rdi). when 1, an lof condition will cause the transmit e3 rdi bit to be set to one if transmit automatic rdi is enabled. bit 6: receive defect indication on los disable (rdild) ? when 0, an los condition will cause the transmit e3 rdi bit to be set to one if transmit automatic rdi is enabled. when 1, an los condition does not affect the rdi signal. bit 5: receive defect indication on oof disable (rdiod) ? when 0, an oof condition will cause the transmit e3 rdi bit to be set to one if transmit automatic rdi is enabled. when 1, an oof condition does not affect the rdi signal. bit 4: receive defect indication on ais disable (rdiad) ? when 0, an ais condition will cause the transmit e3 rdi bit to be set to one if transmit automatic rdi is enabled. when 1, an ais condition does not affect the rdi signal. bit 3: receive overhead masking disable (romd) ? when 0, the e3 overhead positions in the outgoing e3 payload will be marked as overhead by rdenn. when 1, the e3 overhead positions in the outgoing e3 payload will be marked as data by rdenn. bits 2 to 1: lof integration period (lip[1:0]) ? these two bits determine the oof integration period for declaring lof. 00 = oof is integrated for 3 ms before declaring lof. 01 = oof is integrated for 2 ms before declaring lof. 10 = oof is integrated for 1 ms before declaring lof. 11 = lof is declared at the same time as oof. bit 0: force framer re-synchronization (frsync) ? a 0 to 1 transition forces. an oof condition at the next framing word check. this bit must be cleared and set to one again to force another re-synchronization. register name: e3g832.rmacr register description: e3 g.832 receive ma byte control register register address: (1,3,5,7)22h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- ept2 ept1 ept0 tied default 0 0 0 0 0 0 0 0 bits 3 to 1: expected payload type (ept[2:0]) ? these three bits contain the expected value of the payload type. bit 0: timing source indicator bit extraction disable (tied) ? when 0, the four timing source indications bits are extracted from the last three bits of the ma byte (ma[6:8]), and stored in a register. when 1, timing source indicator bit extraction is disabled, and the last three bits of the ma byte are integrated and stored in a register.
ds3181/ds3182/ds3183/DS3184 299 of 389 register name: e3g832.rsr1 register description: e3 g.832 receive status register #1 register address: (1,3,5,7)24h bit # 15 14 13 12 11 10 9 8 name reserved -- -- rptu rptm reserved reserved rua1 bit # 7 6 5 4 3 2 1 0 name reserved reserved -- lof rai ais oof los bit 12: receive payload type unstable (rptu) ? when 0, the receive payload type is stable. when 1, the receive payload type is unstable. bit 11: receive payload type mismatch (rptm) ? when 0, the receive payload type and expected payload type match. when 1, the receive payload type and expected payload type do not match. bit 8: receive unframed all 1?s (rua1) ? when 0, the receive frame processor is not in a receive unframed all 1?s (rua1) condition. when 1, the receive frame processor is in an rua1 condition. bit 4: loss of frame (lof) ? when 0, the receive frame processor is not in a loss of frame (lof) condition. when 1, the receive frame processor is in an lof condition. bit 3: remote defect indication (rdi) ? this bit indicates the current state of the remote defect indication (rdi). bit 2: alarm indication signal (ais) ? when 0, the receive frame processor is not in an alarm indication signal (ais) condition. when 1, the receive frame processor is in an ais condition. bit 1: out of frame (oof) ? when 0, the receive frame processor is not in an out of frame (oof) condition. when 1, the receive frame processor is in an oof condition. bit 0: loss of signal (los) ? when 0, the receive loss of signal (los) input (rlos) is low. when 1, rlos is high. register name: e3g832.rsr2 register description: e3 g.832 receive status register #2 register address: (1,3,5,7)26h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved fbec pec fec bit 2: remote error indication count (fbec) ? when 0, the remote error indication count is zero. when 1, the remote error indication count is one or more. bit 1: parity error count (pec) ? when 0, the parity error count is zero. when 1, the parity error count is one or more. bit 0: framing error count (fec) ? when 0, the framing error count is zero. when 1, the framing error count is one or more.
ds3181/ds3182/ds3183/DS3184 300 of 389 register name: e3g832.rsrl1 register description: e3 g.832 receive status register latched #1 register address: (1,3,5,7)28h bit # 15 14 13 12 11 10 9 8 name reserved -- til rptul rptml rptl reserved rua1l bit # 7 6 5 4 3 2 1 0 name gcl nrl cofal lofl rdil aisl oofl losl bit 13: timing source indication change latched (til) ? this bit is set when the ti[3:0] bits change state. bit 12: receive payload type unstable latched (rptul) ? this bit is set when the rptu bit transitions from zero to one. bit 11: receive payload type mismatch latched (rptml) ? this bit is set when the rptm bit transitions from zero to one. bit 10: receive payload type change latched (rptl) ? this bit is set when the rpt[2:0] bits change state. bit 8: receive unframed all 1?s change latched (rua1l) ? this bit is set when the rua1 bit changes state. bit 7: gc byte change latched (gcl) ? this bit is set when the rgc byte changes state. bit 6: nr byte change latched (nrl) ? this bit is set when the rnr byte changes state. bit 5: change of frame alignment latched (cofal) ? this bit is set when the data path frame counters are updated with a new frame alignment that is different from the previous frame alignment. bit 4: loss of frame change latched (lofl) ? this bit is set when the lof bit changes state. bit 3: remote defect indication change latched (rdil) ? this bit is set when the rdi bit changes state. bit 2: alarm indication signal change latched (aisl) ? this bit is set when the ais bit changes state. bit 1: out of frame change latched (oofl) ? this bit is set when the oof bit changes state. bit 0: loss of signal change latched (losl) ? this bit is set when the los bit changes state. register name: e3g832.rsrl2 register description: e3 g.832 receive status register latched #2 register address: (1,3,5,7)2ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved fbel pel fel bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved fbecl pecl fecl bit 10: remote error indication latched (fbel) ? this bit is set when a remote error indication is detected. bit 9: parity error latched (pel) ? this bit is set when a bip-8 parity error is detected. bit 8: framing error latched (fel) ? this bit is set when a framing error is detected. bit 2: remote error indication count latched (fbecl) ? this bit is set when the fbec bit transitions from zero to one. bit 1: parity error count latched (pecl) ? this bit is set when the pec bit transitions from zero to one. bit 0: framing error count latched (fecl) ? this bit is set when the fec bit transitions from zero to one.
ds3181/ds3182/ds3183/DS3184 301 of 389 register name: e3g832.rsrie1 register description: e3 g.832 receive status register interrupt enable #1 register address: (1,3,5,7)2ch bit # 15 14 13 12 11 10 9 8 name reserved -- tiie rptuie rptmie rptie reserved rua1ie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name gcie nrie cofaie lofie raiie aisie oofie losie default 0 0 0 0 0 0 0 0 bit 13: timing indication interrupt enable (tiie) ? this bit enables an interrupt if the til bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 12: receive payload type unstable interrupt enable (rptuie) ? this bit enables an interrupt if the rptul bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 11: receive payload type mismatch interrupt enable (rptmie) ? this bit enables an interrupt if the rptml bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 10: receive payload type interrupt enable (rptie) ? this bit enables an interrupt if the rptl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 8: receive unframed all 1?s interrupt enable (rua1ie) ? this bit enables an interrupt if the rua1l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 7: gc byte interrupt enable (gcie) ? this bit enables an interrupt if the gcl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 6: nr byte interrupt enable (nrie) ? this bit enables an interrupt if the nrl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 5: change of frame alignment interrupt enable (cofaie) ? this bit enables an interrupt if the cofal bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: loss of frame interrupt enable (lofie) ? this bit enables an interrupt if the lofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 302 of 389 bit 3: remote defect indication interrupt enable (rdiie) ? this bit enables an interrupt if the rdil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: alarm indication signal interrupt enable (aisie) ? this bit enables an interrupt if the aisl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: out of frame interrupt enable (oofie) ? this bit enables an interrupt if the oofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: loss of signal interrupt enable (losie) ? this bit enables an interrupt if the losl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: e3g832.rsrie2 register description: e3 g.832 receive status register interrupt enable #2 register address: (1,3,5,7)2eh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved fbeie peie feie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved fbecie pecie fecie default 0 0 0 0 0 0 0 0 bit 10: remote error indication interrupt enable (fbeie) ? this bit enables an interrupt if the fbel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 9: parity error interrupt enable (peie) ? this bit enables an interrupt if the pel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 8: framing error interrupt enable (feie) ? this bit enables an interrupt if the fel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: remote error indication count interrupt enable (fbecie) ? this bit enables an interrupt if the fbecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: parity error count interrupt enable (pecie) ? this bit enables an interrupt if the pecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 303 of 389 bit 0: framing error count interrupt enable (fecie) ? this bit enables an interrupt if the fecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: e3g832.rmabr register description: e3 g.832 receive ma byte register register address: (1,3,5,7)30h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- rpt2 rpt1 rpt0 ti3 ti2 ti1 ti0 default 0 0 0 0 0 0 0 0 bits 6 to 4: receive payload type (rpt[2:0]) ? these three bits are the integrated version of the payload type (ma[3:5]) from the ma byte. bits 3 to 0: receive timing source indication (ti[3:0]) ? when timing source indicator extraction is enabled, these four bits are the integrated version of the four timing source indicator bits extracted from the last three bits of the ma byte (ma[6:8]). when timing source indicator bit extraction is disabled, ti[3] is zero, and ti[2:0] contain the integrated version of the last three bits of the ma byte. register name: e3g832.rngbr register description: e3 g.832 receive nr and gc byte register register address: (1,3,5,7)32h bit # 15 14 13 12 11 10 9 8 name rgc7 rgc6 rgc5 rgc4 rgc3 rgc2 rgc1 rgc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rnr7 rnr6 rnr5 rnr4 rnr3 rnr2 rnr1 rnr0 default 0 0 0 0 0 0 0 0 bits 15 to 8: receive gc byte (rgc[7:0]) ? these eight bits are the integrated version of the gc byte as extracted from the e3 frame. bits 7 to 0: receive nr byte (rnr[7:0]) ? these eight bits are the integrated version of the nr byte as extracted from the e3 frame.
ds3181/ds3182/ds3183/DS3184 304 of 389 register name: e3g832.rfecr register description: e3 g.832 receive framing error count register register address: (1,3,5,7)34h bit # 15 14 13 12 11 10 9 8 name fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: framing error count (fe[15:0]) ? these 16 bits indicate the number of framing error events on the incoming e3 data stream. this register is updated via the pmu signal (see section 10.4.5 ). register name: e3g832.rpecr register description: e3 g.832 receive parity error count register register address: (1,3,5,7)36h bit # 15 14 13 12 11 10 9 8 name pe15 pe14 pe13 pe12 pe11 pe10 pe9 pe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: parity error count (pe[15:0]) ? these 16 bits indicate the number of parity (bip-8) errors detected on the incoming e3 data stream. this register is updated via the pmu signal (see section 10.4.5 ). register name: e3g832.rfber register description: e3 g.832 receive remote error indication count register register address: (1,3,5,7)38h bit # 15 14 13 12 11 10 9 8 name fbe15 fbe14 fbe13 fbe12 fbe11 fbe10 fbe9 fbe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fbe7 fbe6 fbe5 fbe4 fbe3 fbe2 fbe1 fbe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: remote error indication count (fbe[15:0]) ? these 16 bits indicate the number of remote error indications detected on the incoming e3 data stream. this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 305 of 389 12.10.7 transmit clear channel the transmit clear-channel mode uses one register. 12.10.7.1 register map table 12-39. transmit clear-channel register map address register register description (1,3,5,7)18h cc.tcr clear-channel transmit control register (1,3,5,7)1ah -- reserved (1,3,5,7)1ch -- reserved (1,3,5,7)1eh -- reserved 12.10.7.2 register bit descriptions register name: cc.tcr register description: clear-channel transmit control register register address: (1,3,5,7)18h bit # 15 14 13 12 11 10 9 8 name reserved -- -- reserved reserved reserved reserved reserved default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- reserved reserved reserved reserved reserved tais default 0 0 0 0 0 0 0 0 bit 0: transmit alarm indication signal (tais) ? when 0, the normal signal is transmitted. when 1, the output clear-channel data stream is forced to all ones (ais). note: this bit is logically ored with the tais input signal.
ds3181/ds3182/ds3183/DS3184 306 of 389 12.10.8 receive clear channel the receive clear-channel mode uses four registers. 12.10.8.1 register map table 12-40. receive clear-channel register map address register register description (1,3,5,7)20h cc.rcr clear-channel receive control register (1,3,5,7)22h -- reserved (1,3,5,7)24h cc.rsr1 clear-channel receive status register #1 (1,3,5,7)26h -- reserved (1,3,5,7)28h cc.rsrl1 clear-channel receive status register latched #1 (1,3,5,7)2ah -- reserved (1,3,5,7)2ch cc.rsrie1 clear-channel receive status register interrupt enable #1 (1,3,5,7)2eh -- reserved (1,3,5,7)30h -- reserved (1,3,5,7)32h -- reserved (1,3,5,7)34h -- reserved (1,3,5,7)36h -- reserved (1,3,5,7)38h -- reserved (1,3,5,7)3ah -- reserved (1,3,5,7)3ch -- unused (1,3,5,7)3eh -- unused 12.10.8.2 register bit descriptions register name: cc.rcr register description: clear-channel receive control register register address: (1,3,5,7)20h bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved mdaisi aaisd reserved reserved reserved default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name reserved reserved reserved reserved reserved reserved reserved reserved default 0 0 0 0 0 0 0 0 bit 12: manual downstream ais insertion (mdaisi) ? when 0, manual downstream ais insertion is disabled. when 1, manual downstream ais insertion is enabled. bit 11: automatic downstream ais disable (aaisd) ? when 0, the presence of a los condition will cause downstream ais to be inserted. when 1, the presence of a los condition will not cause downstream ais to be inserted.
ds3181/ds3182/ds3183/DS3184 307 of 389 register name: cc.rsr1 register description: clear-channel receive status register #1 register address: (1,3,5,7)24h bit # 15 14 13 12 11 10 9 8 name reserved reserved -- reserved reserved reserved reserved rua1 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name reserved reserved -- reserved reserved reserved reserved los default 0 0 0 0 0 0 0 0 bit 8: receive unframed all 1?s (rua1) ? when 0, the receive frame processor is not in a receive unframed all 1?s (rua1) condition. when 1, the receive frame processor is in an rua1 condition. bit 0: loss of signal (los) ? when 0, the receive loss of signal (los) input (rlos) is low. when 1, rlos is high. register name: cc.rsrl1 register description: clear-channel receive status register latched #1 register address: (1,3,5,7)28h bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved reserved reserved reserved reserved rua1l default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name reserved reserved reserved reserved reserved reserved reserved losl default 0 0 0 0 0 0 0 0 bit 8: receive unframed all 1?s latched (rua1l) ? this bit is set when the rua1 bit changes state. bit 0: loss of signal change latched (losl) ? this bit is set when the los bit changes state. register name: cc.rsrie1 register description: clear-channel receive status register interrupt enable #1 register address: (1,3,5,7)2ch bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved reserv ed reserved reserved reserved rua1ie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name reserved reserved reserved reserv ed reserved reserved reserved losie default 0 0 0 0 0 0 0 0 bit 8: receive unframed all 1?s interrupt enable (rua1ie) ? this bit enables an interrupt if the rua1l bit is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: loss of signal interrupt enable (losie) ? this bit enables an interrupt if the losl bit is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 308 of 389 12.11 fractional ds3/e3 12.11.1 fractional transmit side register map the transmit side uses three registers. table 12-41. fractional transmit side register map address register register description (1,3,5,7)40h frac.tcr fractional transmit control register (1,3,5,7)42h frac.tdgsr fractional transmit data group size register (1,3,5,7)44h frac.tsasr fractional transmit section a size register (1,3,5,7)46h -- unused 12.11.1.1 register bit descriptions register name: frac.tcr register description: fractional transmit control register register address: (1,3,5,7)40h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- tfosc1 tfosc0 tsass default 0 0 0 0 0 0 0 0 bits 2 to 1: transmit fractional overhead source control (tfosc[1:0]) ? these two bits control the source of the transmit fractional overhead. 00 = all zeros. 01 = all ones. 10 = 1010 pattern. 11 = external (tfoh). bit 0: transmit section a source select (tsass) 0 = section a contains fractional overhead 1 = section a contains payload data register name: frac.tdgsr register description: fractional transmit data group size register register address: (1,3,5,7)42h bit # 15 14 13 12 11 10 9 8 name -- -- -- tdgs12 tdgs11 tdgs10 tdgs9 tdgs8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tdgs7 tdgs6 tdgs5 tdgs4 tdgs3 tdgs2 tdgs1 tdgs0 default 0 0 0 0 0 0 0 0 bits 12 to 0: transmit data group size (tdgs[12:0]) ? these 13 bits indicate the number of bits contained within each transmit data group. a values of 0000h and 0001h both result in a transmit data group size of one bit.
ds3181/ds3182/ds3183/DS3184 309 of 389 register name: frac.tsasr register description: fractional transmit section a size register register address: (1,3,5,7)44h bit # 15 14 13 12 11 10 9 8 name -- -- -- tsas12 tsas11 tsas10 tsas9 tsas8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tsas7 tsas6 tsas5 tsas4 tsas3 tsas2 tsas1 tsas0 default 0 0 0 0 0 0 0 0 bits 15 to 0: transmit section a size (tsas[12:0]) ? these 13 bits indicate the number of bits contained within section a of each transmit data group. if tsas[12:0] is equal to or greater than the data group size (tdgsr.tdgs[12:0]), only ?section a? data will be transmitted. 12.11.2 fractional receive side register map the receive side uses three registers. table 12-42. receive side register map address register register description (1,3,5,7)48h frac.rcr fractional receive control register (1,3,5,7)4ah frac.rdgsr fractional receive data group size register (1,3,5,7)4ch frac.rsasr fractional receive section a size register (1,3,5,7)4eh -- unused 12.11.2.1 register bit descriptions register name: frac.rcr register description: fractional receive control register register address: (1,3,5,7)48h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- rsass default 0 0 0 0 0 0 0 0 bit 0: receive section a source select (rsass) ? when 0, section a of each receive data group will contain fractional overhead. when 1, section a of each receive data group will contain payload data.
ds3181/ds3182/ds3183/DS3184 310 of 389 register name: frac.rdgsr register description: fractional receive data group size register register address: (1,3,5,7)4ah bit # 15 14 13 12 11 10 9 8 name -- -- -- rdgs12 rdgs 11 rdgs10 rdgs9 rdgs8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rdgs7 rdgs6 rdgs5 rdgs4 rdgs3 rdgs2 rdgs1 rdgs0 default 0 0 0 0 0 0 0 0 bits 12 to 0: receive data group size (rdgs[12:0]) ? these 13 bits indicate the number of bits contained within each receive data group. a values of 0000h and 0001h both result in a receive data group size of one bit. register name: frac.rsasr register description: fractional receive section a size register register address: (1,3,5,7)4ch bit # 15 14 13 12 11 10 9 8 name -- -- -- rsas12 rsas 11 rsas10 rsas9 rsas8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rsas7 rsas6 rsas5 rsas 4 rsas3 rsas2 rsas1 rsas0 default 0 0 0 0 0 0 0 0 bits 12 to 0: receive section a size (rsas[12:0]) ? these 13 bits indicate the number of bits contained within section a of each receive data group. if rsas[12:0] is equal to or greater than the data group size ( frac.rdgsr .rdgs[12:0]), all data will be marked as ?section a? data.
ds3181/ds3182/ds3183/DS3184 311 of 389 12.12 ds3/e3 plcp 12.12.1 transmit side plcp the transmit side uses seven registers. 12.12.1.1 register map table 12-43. transmit side plcp register map address register register description (1,3,5,7)50h plcp.tcr plcp transmit control register (1,3,5,7)52h plcp.teir plcp transmit error insertion register (1,3,5,7)54h plcp.tfgbr plcp transmit f1 and g1 byte register (1,3,5,7)56h plcp.tm12br plcp transmit m1 and m2 byte register (1,3,5,7)58h plcp.tz12br plcp transmit z1 and z2 byte register (1,3,5,7)5ah plcp.tz34br plcp transmit z3 and z4 byte register (1,3,5,7)5ch plcp.tz56br plcp transmit z5 and z6 byte register (1,3,5,7)5eh -- unused 12.12.1.2 register bit descriptions register name: plcp.tcr register description: plcp transmit control register register address: (1,3,5,7)50h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- tmc1 tmc0 tf1c1 tf1c0 areid default 0 0 0 0 0 0 0 0 bits 4 to 3: transmit m2 and m1 byte control (tmc[1:0]) ? these two bits control the source of the transmit m2 and m1 bytes. 00 = concatenated m1 and m2 (128 khz) from transmit hdlc controller. 01 = m2 (64 khz) from transmit hdlc controller; m1 from m1 byte register ( plcp.tm12br ). 10 = m2 from m2 byte register; m1 (64 khz) from transmit hdlc controller. 11 = m2 from m2 byte register; m1 from m1 byte register bits 2 to 1: transmit f1 byte control (tf1c[1:0]) ? these two bits control the source of the transmit f1 byte. 00 = transmit trail trace controller. 01 = transmit hdlc controller. 10 = f1 byte register ( plcp.tfgbr ). 11 = reserved note: if tmc[1:0] is 00 and tf1c[1:0] is 01, the f1 byte will be invalid. if tmc[1:0] is 01 and tf1c[1:0] is 01, both m2 and f1 will carry the transmit hdlc data link. if tmc[1:0] is 10 and tf1c[1:0] is 01, both m1 and f1 will carry the transmit hdlc data link. when f1 and m# both carry the transmit hdlc data link, the f1 byte and m# byte in the same frame may or may not be equal. bit 0: automatic rei defeat (areid) ? when 0, the rei is automatically generated based upon the parity (bip-8) errors detected in the receive plcp frame processor. when 1, the rei is inserted from the g1 register bits trei[3:0].
ds3181/ds3182/ds3183/DS3184 312 of 389 register name: plcp.teir register description: plcp transmit error insertion register register address: (1,3,5,7)52h bit # 15 14 13 12 11 10 9 8 name -- -- reime creiie reiei pbee cpeie pei default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- fee feic1 feic0 fei tsei meims default 0 0 0 0 0 0 0 0 bit 13: remote error indication maximum error (reime) ? when 0, an rei error is generated by inserting a value of 1h (single error) into the rei bits (g1[1:4]). when 1, an rei error is generated by inserting a value of 8h (eight errors) into the rei bits. bit 12: continuous remote error indica tion error insertion enable (creiie) ? when 0, single remote error indication (rei) error insertion is enabled. when 1, continuous rei error insertion is enabled, and rei errors will be continuously transmitted if reiei is high. bit 11: remote error indication error insertion enable (reiei) ? when 0, rei error insertion is disabled. when 1, rei error insertion is enabled. bit 10: parity block error enable (pbee) ? when 0, a parity error is generated by inverting a single bit in the b1 byte. when 1, a parity error is generated by inverting all eight bits in the b1 byte. bit 9: continuous parity error insertion enable (cpeie) ? when 0, single parity (bip-8) error insertion is enabled. when 1, continuous parity error insertion is enabled, and parity errors will be transmitted continuously if pei is high. bit 8: parity error insertion enable (pei) ? when 0, parity (bip-8) error insertion is disabled. when 1, parity (bip- 8) error insertion is enabled. bit 5: framing byte error enable (fee) ? when 0, a framing bit error is generated by inverting a single bit in the indicated byte. when 1, a framing byte error is generated by inverting all eight bits of the indicated byte. bits 4 to 3: framing error control (feic[1:0]) ? these two bits control the type of framing error event to be inserted. 00 = single a1 or a2 error (1 per subframe maximum). 01 = single poi (p#) error (1 per 2 subframes maximum). 10 = both an a1 and an a2 error in the same subframe. 11 = two poi (p#) errors in consecutive subframes. bit 2: framing error insertion enable (fei) ? when 0, framing error insertion is disabled. when 1, framing error insertion is enabled. bit 1: transmit single error insert (tsei) ? this bit causes an error of the enabled type(s) to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0). a 0 to 1 transition causes a single error to be inserted. for a second error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted. bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause an error to be inserted.
ds3181/ds3182/ds3183/DS3184 313 of 389 register name: plcp.tfgbr register description: plcp transmit f1 and g1 byte register register address: (1,3,5,7)54h bit # 15 14 13 12 11 10 9 8 name tf17 tf16 tf15 tf14 tf13 tf12 tf11 tf10 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name trei3 trei2 trei1 trei0 trai tlss2 tlss1 tlss0 default 0 0 0 0 0 0 0 0 bits 15 to 8: transmit f1 byte (tf1[7:0]) ? these eight bits are the f1 byte to be inserted into the transmit plcp frame. bits 7 to 4: transmit rei setting (trei[3:0]) ? when automatic rei generation is defeated (plcp.tcr.areid = 0), these bits are inserted into the rei bits (g1[1:4]). bit 3: transmit rai setting (trai) ?this bit is inserted into the rai bits (g1[5]). bits 2 to 0: transmit link status signal (tlss[2:0]) ? these three bits are the transmit link status signal (g1[6:8]) to be inserted into the transmit plcp frame. register name: plcp.tm12br register description: plcp transmit m1 and m2 byte register register address: (1,3,5,7)56h bit # 15 14 13 12 11 10 9 8 name tm27 tm26 tm25 tm24 tm23 tm22 tm21 tm20 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tm17 tm16 tm15 tm14 tm13 tm12 tm11 tm10 default 0 0 0 0 0 0 0 0 bits 15 to 8: transmit m2 byte (tm2[7:0]) ? these eight bits are the m2 byte to be inserted into the transmit plcp frame. bits 7 to 0: transmit m1 byte (tm1[7:0]) ? these eight bits are the m1 byte to be inserted into the transmit plcp frame. register name: plcp.tz12br register description: plcp transmit z1 and z2 byte register register address: (1,3,5,7)58h bit # 15 14 13 12 11 10 9 8 name tz27 tz26 tz25 tz24 tz23 tz22 tz21 tz20 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tz17 tz16 tz15 tz14 tz13 tz12 tz11 tz10 default 0 0 0 0 0 0 0 0 bits 15 to 8: transmit z2 byte (tz2[7:0]) ? these eight bits are the z2 byte to be inserted into the transmit plcp frame. bits 7 to 0: transmit z1 byte (tz1[7:0]) ? these eight bits are the z1 byte to be inserted into the transmit plcp frame.
ds3181/ds3182/ds3183/DS3184 314 of 389 register name: plcp.tz34br register description: plcp transmit z3 and z4 byte register register address: (1,3,5,7)5ah bit # 15 14 13 12 11 10 9 8 name tz47 tz46 tz45 tz44 tz43 tz42 tz41 tz40 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tz37 tz36 tz35 tz34 tz33 tz32 tz31 tz30 default 0 0 0 0 0 0 0 0 bits 15 to 8: transmit z4 byte (tz4[7:0]) ? these eight bits are the z4 byte to be inserted into the transmit plcp frame (this bits are unused in e3 mode). bits 7 to 0: transmit z3 byte (tz3[7:0]) ? these eight bits are the z3 byte to be inserted into the transmit plcp frame. register name: plcp.tz56br register description: plcp transmit z5 and z6 byte register register address: (1,3,5,7)5ch bit # 15 14 13 12 11 10 9 8 name tz67 tz66 tz65 tz64 tz63 tz62 tz61 tz60 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tz57 tz56 tz55 tz54 tz53 tz52 tz51 tz50 default 0 0 0 0 0 0 0 0 bits 15 to 8: transmit z6 byte (tz6[7:0]) ? these eight bits are the z6 byte to be inserted into the transmit plcp frame (this bits are unused in e3 mode). bits 7 to 0: transmit z5 byte (tz5[7:0]) ? these eight bits are the z5 byte to be inserted into the transmit plcp frame (this bits are unused in e3 mode).
ds3181/ds3182/ds3183/DS3184 315 of 389 12.12.2 receive side plcp register map the receive side uses 13 registers. table 12-44. receive side plcp register map address register register description (1,3,5,7)60h plcp.rcr plcp receive control register (1,3,5,7)62h -- unused (1,3,5,7)64h plcp.rsr1 plcp receive status register #1 (1,3,5,7)66h plcp.rsr2 plcp receive status register #2 (1,3,5,7)68h plcp.rsrl1 plcp receive status register latched #1 (1,3,5,7)6ah plcp.rsrl2 plcp receive status register latched #2 (1,3,5,7)6ch plcp.rsrie1 plcp receive status register interrupt enable #1 (1,3,5,7)6eh plcp.rsrie2 plcp receive status register interrupt enable #2 (1,3,5,7)70h plcp.rfecr plcp receive framing error count register (1,3,5,7)72h plcp.rpecr plcp receive p-bit parity error count register (1,3,5,7)74h plcp.rpecr plcp receive rei error count register (1,3,5,7)76h plcp.rfgbr plcp receive f1 and g1 byte register (1,3,5,7)78h plcp.rm12br plcp receive m1 and m2 byte register (1,3,5,7)7ah plcp.rz12br plcp receive z1 and z2 byte register (1,3,5,7)7ch plcp.rz34br plcp receive z3 and z4 byte register (1,3,5,7)7eh plcp.rz56br plcp receive z5 and z6 byte register 12.12.2.1 register bit descriptions register name: plcp.rcr register description: plcp receive control register register address: (1,3,5,7)60h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- rhsc1 rhsc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- rlie -- pecc fepd fecc ecc frsync default 0 0 0 0 0 0 0 0 bits 9 to 8: receive hdlc source control (rhsc[1:0]) ? these two bits control the source of the receive hdlc controller. 00 = f1 byte. 01 = m1 byte. 10 = m2 byte. 11 = m2 and m1 byte. bit 6: receive lof integration enable (rlie) ? when 0, the receive loss of frame (lof) integration counter is disabled. when 1, the receive lof integration counter is enabled. bit 4: parity error count control (pecc) ? when 0, bip-8 (b1 byte) bit errors are detected (up to 8 per frame). when 1, bip-8 block errors are detected (no more than one per frame). note: the transmit rei bits are affected by the setting of this bit as the rei bits reflect the number of bip-8 errors detected/counted. bit 3: framing error poi disable (fepd) ? when 0, path overhead indicator (poi) byte (p#) and framing alignment byte (a1 & a2) errors are detected. when 1, only a1 & a2 errors are detected. note: this bit is ignored when oof events are counted (fecc=1) bit 2: framing error count control (fecc) ? this bit controls the type of framing error events that are counted. when 0, a1 byte errors, a2 byte errors, and p# byte errors (up to 3 per subframe) are counted. when 1, oof events are counted.
ds3181/ds3182/ds3183/DS3184 316 of 389 bit 1: error count control (ecc) ? when 0, framing errors, bip-8 parity errors, and rei errors will not be counted during an oof condition (bip-8 parity error counting will resume in the second full frame after an oof condition is cleared). when 1, framing errors, bip-8 parity errors, and rei errors will be counted during an oof condition. bit 0: force framer re-synchronization (frsync) ? a 0 to 1 transition forces the framer into the ?search state. once the framer acquires lock, the data path frame counters will be updated regardless of whether an oof condition exists or not. the bit must be cleared and set to one again to force another re-synchronization register name: plcp.rsr1 register description: plcp receive status register #1 register address: (1,3,5,7)64h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- lof bit # 7 6 5 4 3 2 1 0 name -- -- reic pec fec rai -- oof bit 8: loss of frame (lof) ? when 0, the receive line interface is not in a loss of frame (lof) condition. when 1, the receive line interface is in an lof condition. bit 5: remote error indication count (reic) ? when 0, the remote error indication count is zero. when 1, the remote error indication count is one or more. bit 4: parity error count (pec) ? when 0, the parity error count is zero. when 1, the parity error count is one or more. bit 3: framing error count (fec) ? when 0, the framing error count is zero. when 1, the framing error count is one or more. bit 2: remote alarm indication (rai) ? this bit indicates the current state of the remote alarm indication (rai), which is the fifth bit of the g1 byte (g1[5]). bit 0: out of frame (oof) ? when 0, the receive frame processor is not in an out of frame (oof) condition. when 1, the receive frame processor is in an oof condition. register name: plcp.rsr2 register description: plcp receive status register #2 register address: (1,3,5,7)66h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- lssu bit 0: receive link status signal unstable (lssu) ? when 0, the receive link states signal is stable. when 1, the receive link states signal is unstable.
ds3181/ds3182/ds3183/DS3184 317 of 389 register name: plcp.rsrl1 register description: plcp receive status register latched #1 register address: (1,3,5,7)68h bit # 15 14 13 12 11 10 9 8 name -- -- reil pel fel -- -- lofl bit # 7 6 5 4 3 2 1 0 name -- -- reicl pecl fecl rail cofal oofl bit 13: remote error indication latched (reil) ? this bit is set when a far-end block error is detected. bit 12: parity error latched (pel) ? this bit is set when a bip-8 parity error is detected. bit 11: framing error latched (fel) ? this bit is set when a framing error is detected. bit 8: loss of frame change latched (lofl) ? this bit is set when the lof bit changes state. bit 5: remote error indication count latched (reicl) ? this bit is set when the reic bit transitions from zero to one. bit 4: parity error count latched (pecl) ? this bit is set when the pec bit transitions from zero to one. bit 3: framing error count latched (fecl) ? this bit is set when the fec bit transitions from zero to one. bit 2: remote defect indication change latched (rail) ? this bit is set when the rai bit changes state. bit 1: change of frame alignment latched (cofal) ? this bit is set when the data path frame counters are updated with a new frame alignment that is different from the previous frame alignment. bit 0: out of frame change latched (oofl) ? this bit is set when the oof bit changes state. register name: plcp.rsrl2 register description: plcp receive status register latched #2 register address: (1,3,5,7)6ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- rz6l rz5l rz4l bit # 7 6 5 4 3 2 1 0 name rz3l rz2l rz1l rm2l rm1l rf1l lssl lssul bit 10: receive z6 byte change latched (rz6l) ? this bit is set when the rz6[7:0] bits change state (this bit is zero in e3 mode). bit 9: receive z5 byte change latched (rz5l) ? this bit is set when the rz5[7:0] bits change state (this bit is zero in e3 mode). bit 8: receive z4 byte change latched (rz4l) ? this bit is set when the rz4[7:0] bits change state (this bit is zero in e3 mode). bit 7: receive z3 byte change latched (rz3l) ? this bit is set when the rz3[7:0] bits change state. bit 6: receive z2 byte change latched (rz2l) ? this bit is set when the rz2[7:0] bits change state. bit 5: receive z1 byte change latched (rz1l) ? this bit is set when the rz1[7:0] bits change state. bit 4: receive m2 byte change latched (rm2l) ? this bit is set when the rm2[7:0] bits change state. bit 3: receive m1 byte change latched (rm1l) ? this bit is set when the rm1[7:0] bits change state. bit 2: receive f1 byte change latched (rf1l) ? this bit is set when the rf1[7:0] bits change state.
ds3181/ds3182/ds3183/DS3184 318 of 389 bit 1: receive link status signal change latched (lssl) ? this bit is set when the lss[2:0] bits change state. bit 0: receive link status signal unstable change latched (lssul) ? this bit is set when the lssu bit changes state. register name: plcp.rsrie1 register description: plcp receive status register interrupt enable #1 register address: (1,3,5,7)6ch bit # 15 14 13 12 11 10 9 8 name -- -- reiie peie feie -- -- lofie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- reicie pecie fe cie raiie cofaie oofie default 0 0 0 0 0 0 0 0 bit 13: remote error indication interrupt enable (reiie) ? this bit enables an interrupt if the reil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 12: parity error interrupt enable (peie) ? this bit enables an interrupt if the pel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 11: framing error interrupt enable (feie) ? this bit enables an interrupt if the fel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 8: loss of frame interrupt enable (lofie) ? this bit enables an interrupt if the lofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 5: remote error indication count interrupt enable (reicie) ? this bit enables an interrupt if the reicl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: parity error count interrupt enable (pecie) ? this bit enables an interrupt if the pecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: framing error count interrupt enable (fecie) ? this bit enables an interrupt if the fecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: remote defect indication interrupt enable (raiie) ? this bit enables an interrupt if the rail bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 319 of 389 bit 1: change of frame alignment interrupt enable (cofaie) ? this bit enables an interrupt if the cofal bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: out of frame interrupt enable (oofie) ? this bit enables an interrupt if the oofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: plcp.rsrie2 register description: plcp receive status register interrupt enable #2 register address: (1,3,5,7)6eh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- rz6ie rz5ie rz4ie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rz3ie rz2ie rz1ie rm2ie rm1ie rf1ie lssie lssuie default 0 0 0 0 0 0 0 0 bit 10: receive z6 byte interrupt enable (rz6ie) ? this bit enables an interrupt if the rz6l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. (this bit is unused in e3 mode). 0 = interrupt disabled 1 = interrupt enabled bit 9: receive z5 byte interrupt enable (rz5ie) ? this bit enables an interrupt if the rz5l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. (this bit is unused in e3 mode). 0 = interrupt disabled 1 = interrupt enabled bit 8: receive z4 byte interrupt enable (rz4ie) ? this bit enables an interrupt if the rz4l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. (this bit is unused in e3 mode). 0 = interrupt disabled 1 = interrupt enabled bit 7: receive z3 byte interrupt enable (rz3ie) ? this bit enables an interrupt if the rz3l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 6: receive z2 byte interrupt enable (rz2ie) ? this bit enables an interrupt if the rz2l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 5: receive z1 byte interrupt enable (rz1ie) ? this bit enables an interrupt if the rz1l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: receive m2 byte interrupt enable (rm2ie) ? this bit enables an interrupt if the rm2l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 320 of 389 bit 3: receive m1 byte interrupt enable (rm1ie) ? this bit enables an interrupt if the rm1l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: receive f1 byte interrupt enable (rf1ie) ? this bit enables an interrupt if the rf1l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: receive link status signal interrupt enable (lssie) ? this bit enables an interrupt if the lssl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: receive link status signal unstable interrupt enable (lssuie) ? this bit enables an interrupt if the lssul bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: plcp.rfecr register description: plcp receive framing error count register register address: (1,3,5,7)70h bit # 15 14 13 12 11 10 9 8 name fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: framing error count (fe[15:0]) ? these 16 bits indicate the number of framing error events on the incoming plcp data stream. this register is updated via the pmu signal (see section 10.4.5 ). register name: plcp.rpecr register description: plcp receive parity error count register register address: (1,3,5,7)72h bit # 15 14 13 12 11 10 9 8 name pe15 pe14 pe13 pe12 pe11 pe10 pe9 pe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: parity error count (pe[15:0]) ? these 16 bits indicate the number of parity (bip-8) errors detected on the incoming plcp data stream. this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 321 of 389 register name: plcp.rreicr register description: plcp receive remote error indication count register register address: (1,3,5,7)74h bit # 15 14 13 12 11 10 9 8 name rei15 rei14 rei13 rei12 rei11 rei10 rei9 rei8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rei7 rei6 rei5 rei4 rei3 rei2 rei1 rei0 default 0 0 0 0 0 0 0 0 bits 15 to 0: remote error indication count (rei[15:0]) ? these 16 bits indicate the number of remote error indication errors detected on the incoming plcp data stream. this register is updated via the pmu signal (see section 10.4.5 ). register name: plcp.rfgbr register description: plcp receive f1 and g1 byte register register address: (1,3,5,7)76h bit # 15 14 13 12 11 10 9 8 name rf17 rf16 rf15 rf14 rf13 rf12 rf11 rf10 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- lss2 lss1 lss0 default 0 0 0 0 0 0 0 0 bits 15 to 8: receive f1 byte (rf1[7:0]) ? these eight bits are the integrated version of the f1 byte as extracted from the receive plcp frame. bits 2 to 0: receive link status signal (lss[2:0]) ? these three bits are the integrated version of the receive link status signal (g1[6:8]) as extracted from the receive plcp frame. register name: plcp.rm12br register description: plcp receive m1 and m2 byte register register address: (1,3,5,7)78h bit # 15 14 13 12 11 10 9 8 name rm27 rm26 rm25 rm24 rm23 rm22 rm21 rm20 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rm17 rm16 rm15 rm14 rm13 rm12 rm11 rm10 default 0 0 0 0 0 0 0 0 bits 15 to 8: receive m2 byte (rm2[7:0]) ? these eight bits are the integrated version of the m2 byte as extracted from the receive plcp frame. bits 7 to 0: receive m1 byte (rm1[7:0]) ? these eight bits are the integrated version of the m1 byte as extracted from the receive plcp frame.
ds3181/ds3182/ds3183/DS3184 322 of 389 register name: plcp.rz12br register description: plcp receive z1 and z2 byte register register address: (1,3,5,7)7ah bit # 15 14 13 12 11 10 9 8 name rz27 rz26 rz25 rz24 rz23 rz22 rz21 rz20 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rz17 rz16 rz15 rz14 rz13 rz12 rz11 rz10 default 0 0 0 0 0 0 0 0 bits 15 to 8: receive z2 byte (rz2[7:0]) ? these eight bits are the integrated version of the z2 byte as extracted from the receive plcp frame. bits 7 to 0: receive z1 byte (rz1[7:0]) ? these eight bits are the integrated version of the z1 byte as extracted from the receive plcp frame. register name: plcp.rz34br register description: plcp receive z3 and z4 byte register register address: (1,3,5,7)7ch bit # 15 14 13 12 11 10 9 8 name rz47 rz46 rz45 rz44 rz43 rz42 rz41 rz40 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rz37 rz36 rz35 rz34 rz33 rz32 rz31 rz30 default 0 0 0 0 0 0 0 0 bits 15 to 8: receive z4 byte (rz4[7:0]) ? these eight bits are the integrated version of the z4 byte as extracted from the receive plcp frame (this bits are zero in e3 mode). bits 7 to 0: receive z3 byte (rz3[7:0]) ? these eight bits are the integrated version of the z3 byte as extracted from the receive plcp frame. register name: plcp.rz56br register description: plcp receive z5 and z6 byte register register address: (1,3,5,7)7eh bit # 15 14 13 12 11 10 9 8 name rz67 rz66 rz65 rz64 rz63 rz62 rz61 rz60 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rz57 rz56 rz55 rz54 rz53 rz52 rz51 rz50 default 0 0 0 0 0 0 0 0 bits 15 to 8: receive z6 byte (rz6[7:0]) ? these eight bits are the integrated version of the z6 byte as extracted from the receive plcp frame (this bits are zero in e3 mode). bits 7 to 0: receive z5 byte (rz5[7:0]) ? these eight bits are the integrated version of the z5 byte as extracted from the receive plcp frame (this bits are zero in e3 mode).
ds3181/ds3182/ds3183/DS3184 323 of 389 12.13 fifo registers 12.13.1 transmit fifo register map the transmit fifo block has five registers. table 12-45. transmit fifo register map address register register description (1,3,5,7)80h ff.tcr fifo transmit control register (1,3,5,7)82h ff.tlcr fifo transmit level control register (1,3,5,7)84h ff.tpac fifo transmit port address control register (1,3,5,7)86h -- unused (1,3,5,7)88h ff.tsrl fifo transmit status register latched (1,3,5,7)8ah ff.tsrie fifo transmit status register interrupt enable (1,3,5,7)8ch -- unused (1,3,5,7)8eh -- unused 12.13.1.1 register bit descriptions register name: ff.tcr register description: fifo transmit control register register address: (1,3,5,7)80h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tfrst default 0 0 0 0 0 0 0 1 bit 0: transmit fifo reset (tfrst) ? when 0, the transmit fifo will resume normal operations, however, data is discarded until a start of packet/cell is received after ram power-up is completed. when 1, the transmit fifo is emptied, any transfer in progress is halted, the fifo ram is powered down, the associated tdxa is forced low, and all incoming data is discarded. if the port was selected when the reset was initiated, the port will be deselected, and must be reselected ( ten deasserted with address on tadr or tsx asserted with address on tdata) before any transfer will occur. register name: ff.tlcr register description: fifo transmit level control register register address: (1,3,5,7)82h bit # 15 14 13 12 11 10 9 8 name -- -- tfae5 tfae4 tfae3 tfae2 tfae1 tfae0 default 0 0 0 1 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfaf5 tfaf4 tfaf3 tfaf2 tfaf1 tfaf0 default 0 0 0 1 0 0 0 0
ds3181/ds3182/ds3183/DS3184 324 of 389 bits 13 to 8: transmit fifo almost empty level (tfae[5:0]) ? in pos-phy packet processing mode, these six bits indicate the maximum number of four byte groups that can be stored in the transmit fifo for it to be considered "almost empty". e.g., a value of 30 (1eh) results in the fifo being "almost empty" when it contains 120 (78h) bytes or less. in cell processing mode, these bits are ignored. bits 5 to 0: transmit fifo almost full level (tfaf[5:0]) ? in pos-phy packet processing mode, these six bits indicate the maximum number of four byte groups that can be available in the transmit fifo for it to be considered "almost full". e.g., a value of 30 (1eh) results in the fifo being "almost full" when it has 120 (78h) bytes or less available. in cell processing mode, tfaf[5:2] are ignored, and tfaf[1:0] indicate the maximum number of cells that can be available in the transmit fifo for it to be considered "almost full". register name: ff.tpac register description: fifo transmit port address control register register address: (1,3,5,7)84h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- tpa4 tpa3 tpa2 tpa1 tpa0 default 0 0 0 0 0 0 0 0 bits 4 to 0: transmit fifo system port address (tpa[4:0]) ? these five bits set the transmit fifo system interface port address used to poll the transmit fifo for fill status, and select it for data transfer. in level 2 mode, if bits tpa[4:0] are set to a value of 1fh, the port is disabled. register name: ff.tsrl register description: fifo transmit status register latched register address: (1,3,5,7)88h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- tfatl tfstl tfitl tful tfol bit 4: transmit fifo aborted transfer latched (tfatl) ? this bit is set when a transfer is aborted. an aborted transfer does not occur in utopia mode. in pos-phy mode, an aborted transfer occurs when a packet error (a transfer with terr and teop asserted) occurs. an aborted transfer is stored in the transmit fifo with an abort indication. bit 3: transmit fifo short transfer latched (tfstl) ? this bit is set when a "short transfer" is received. in utopia mode, a "short transfer" occurs when a start of cell (a transfer with tsoc asserted) occurs before the previous cell transfer has been completed. in pos-phy mode, a "short transfer" occurs when a start of packet (a transfer with tsop asserted) occurs after a previous start of packet, but before an end of packet (a transfer with teop asserted). in utopia mode, the short transfer data is discarded. in pos-phy mode, a short transfer is stored in the transmit fifo with an abort indication. bit 2: transmit fifo invalid transfer latched (tfitl) ? this bit is set when an "invalid transfer" is initiated. in utopia mode, an "invalid transfer" occurs when additional cell data is transferred after the last transfer of a cell and before a transfer with tsoc asserted. in pos-phy mode, an "invalid transfer" occurs when packet data is transferred after an end of packet, but before a start of packet (this includes another end of packet transfer). the invalid transfer data is discarded.
ds3181/ds3182/ds3183/DS3184 325 of 389 bit 1: transmit fifo underflow latched (tful) ? this bit is set when a transmit fifo underflow condition occurs. an underflow condition results in a loss of data. bit 0: transmit fifo overflow latched (tfol) ? this bit is set when a transmit fifo overflow condition occurs. an overflow condition results in a loss of data. register name: ff.tsrie register description: fifo transmit status register interrupt enable register address: (1,3,5,7)8ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- tfatie tfstie tfitie tfuie tfoie default 0 0 0 0 0 0 0 0 bit 4: transmit fifo aborted transfer interrupt enable (tfatie) ? this bit enables an interrupt if the tfatl bit in the ff.tsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: transmit fifo short transfer interrupt enable (tfstie) ? this bit enables an interrupt if the tfstl bit in the ff.tsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: transmit fifo invalid transfer interrupt enable (tfitie) ? this bit enables an interrupt if the tfitl bit in the ff.tsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled 1 = interrupt enabled bit 1: transmit fifo underf low interrupt enable (tfuie) ? this bit enables an interrupt if the tful bit in the ff.tsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: transmit fifo overflow interrupt enable (tfoie) ? this bit enables an interrupt if the tfol bit in the ff.tsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 326 of 389 12.13.2 receive fifo register map the receive fifo block has five registers. table 12-46. receive fifo register map address register register description (1,3,5,7)90h ff.rcr fifo receive control register (1,3,5,7)92h ff.rlcr fifo receive level control register (1,3,5,7)94h ff.rpac fifo receive port address control register (1,3,5,7)96h -- unused (1,3,5,7)98h ff.rsrl fifo receive status register latched (1,3,5,7)9ah ff.rsrie fifo receive status register interrupt enable (1,3,5,7)9ch -- unused (1,3,5,7)9eh -- unused 12.13.2.1 register bit descriptions register name: ff.rcr register description: fifo receive control register register address: (1,3,5,7)90h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- rfrst default 0 0 0 0 0 0 0 1 bit 0: receive fifo reset (rfrst) ? when 0, the receive fifo will resume normal operations, however, data is discarded until a start of packet/cell is received after ram power-up is completed. when 1, the receive fifo is emptied, any transfer in progress is halted, the fifo ram is powered down, the associated rdxa signal is forced low, and all incoming data is discarded. if the port was selected when the reset was initiated, the port will be deselected, and must be reselected ( ren ) deasserted with address on radr or rsx asserted with address on rdata) before any transfer will occur. register name: ff.rlcr register description: fifo receive level control register register address: (1,3,5,7)92h bit # 15 14 13 12 11 10 9 8 name -- -- rfae5 rfae4 rf ae3 rfae2 rfae1 rfae0 default 0 0 0 1 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- rfaf5 rfaf4 rf af3 rfaf2 rfaf1 rfaf0 default 0 0 0 1 0 0 0 0 bits 13 to 8: receive fifo almost empty level (rfae[5:0]) ? in pos-phy packet processing mode, these six bits indicate the maximum number of four byte groups that can be stored in the receive fifo for it to be considered "almost empty". e.g., a value of 30 (1eh) results in the fifo being "almost empty" when it contains 120
ds3181/ds3182/ds3183/DS3184 327 of 389 (78h) bytes or less. in cell processing mode, rfae[5:2] are ignored, and rfae[1:0] indicate the maximum number of cells that can be stored in the receive fifo for it to be considered "almost empty". bits 5 to 0: receive fifo almost full level (rfaf[5:0]) ? in pos-phy packet processing mode, these six bits indicate the maximum number of four byte groups that can be available in the receive fifo for it to be considered "almost full". e.g., a value of 30 (1eh) results in the fifo being "almost full" when it has 120 (78h) bytes or less available. in cell processing mode, these bits are ignored. register name: ff.rfpac register description: fifo receive port address control register register address: (1,3,5,7)94h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- rpa4 rpa3 rpa2 rpa1 rpa0 default 0 0 0 0 0 0 0 0 bits 4 to 0: receive fifo system port address (rpa[4:0]) ? these five bits set the receive fifo system interface port address used to poll the receive fifo for fill status, and select it for data transfer. each port in the device must have a different port address. in level 2 mode, if bits rpa[4:0] are set to a value of 1fh, the port is disabled. register name: ff.rsrl register description: fifo receive status register latched register address: (1,3,5,7)98h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- rfol bit 0: receive fifo overflow latched (rfol) ? this bit is cleared when a logic one is written to this bit, and set when a receive fifo overflow condition occurs. an overflow condition results in a loss of data. register name: ff.rsrie register description: fifo receive status register interrupt enable register address: (1,3,5,7)9ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- rfoie default 0 0 0 0 0 0 0 0 bit 0: receive fifo overflow interrupt enable (rfoie) ? this bit enables an interrupt if the rfol bit in the ff.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 328 of 389 12.14 cell/packet processor 12.14.1 transmit cell processor register map the transmit cell processor block has 11 registers. note: these registers are shared with the transmit packet processors. table 12-47. transmit cell processor register map address register register description (1,3,5,7)a0h cp.tcr cell processor transmit control register (1,3,5,7)a2h -- reserved (1,3,5,7)a4h cp.tecc cell processor transmit erred cell control register (1,3,5,7)a6h cp.thmrc cell processor tr ansmit hec error mask control register (1,3,5,7)a8h cp.thpc1 cell processor transmit header pattern control register #1 (1,3,5,7)aah cp.thpc2 cell processor transmit header pattern control register #2 (1,3,5,7)ach cp.tfppc cell processo r transmit fill cell payload pattern control register (1,3,5,7)aeh cp.tsr cell processor transmit status register (1,3,5,7)b0h cp.tsrl cell processor transmit status register latched (1,3,5,7)b2h cp.tsrie cell processor tr ansmit status register interrupt enable (1,3,5,7)b4h cp.tccr1 cell processor transmit cell count register #1 (1,3,5,7)b6h cp.tccr2 cell processor transmit cell count register #2 (1,3,5,7)b8h -- reserved (1,3,5,7)bah -- reserved (1,3,5,7)bch -- unused (1,3,5,7)beh -- unused 12.14.1.1 register bit descriptions register name: cp.tcr register description: cell processor transmit control register register address: (1,3,5,7)a0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- tdse tdhe thpe tcpad default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfch tfcp thse tsd tbre tcpd default 0 0 0 0 0 0 0 0 bit 11: transmit dss scrambling enable (tdse) ? when 0, self-synchronous scrambling is enabled. when 1, dss scrambling is enabled. this bit is ignored if scrambling is disabled. note: in byte synchronous and cell pass- through modes, self-synchronous scrambling is enabled regardless of the setting of this bit. bit 10: transmit dqdb hec processing enable (tdhe) ? when 0, the hec is calculated over all four-header bytes. when 1, only the last three header bytes are used for hec calculation. bit 9: transmit hec pass-through enable (thpe) ? when 0, the calculated hec byte will overwrite the hec byte in the cell. when 1, the hec byte in the cell is passed through. note: the calculated hec is always inserted into cells that are received without a hec byte. bit 8: transmit hec coset polynomial addition disable (tcpad) ? when 0, the hec coset polynomial addition is performed prior to inserting the hec byte. when 1, hec coset polynomial addition is disabled
ds3181/ds3182/ds3183/DS3184 329 of 389 bit 5: transmit fill cell header type (tfch) ? when 0, an idle cell header (00 00 00 01h) will be used in fill cells. when 1, a programmable header will be used in fill cells. the setting of this bit does not affect the contents of the cell payload bytes. bit 4: transmit fill cell payload type (tfcp) ? when 0, an idle cell payload byte (6ah) will be used in each payload byte fill cells. when 1, a programmable cell payload byte will be used in each payload byte fill cells. the setting of this bit does not affect the contents of the cell header bytes. bit 3: transmit cell header scrambling enable (thse) ? when 0, only the cell payload will be scrambled. when 1, the entire data stream (cell header and payload) is scrambled. this bit is ignored if scrambling is disabled, or dss scrambling is enabled. when cell pass-through mode is enabled, the entire data stream will be scrambled if scrambling is enabled. bit 2: transmit scrambling disable (tsd) ? when 0, scrambling is performed. when 1, scrambling is disabled. bit 1: transmit bit reordering enable (tbre) ? when 0, bit reordering is disabled (the first bit transmitted is from the msb of the transmit fifo byte tfd[7]). when 1, bit reordering is enabled (the first bit transmitted is from the lsb of the transmit fifo byte tfd[0]). bit 0: transmit pass-through enable (tpte) ? when 0, pass-through mode is disabled and cell processing is enabled. when 1, all cell processing functions except scrambling and bit reordering are disabled and the cell processor is in pass-through mode. register name: cp.tecc register description: cell processor transmit errored cell control register register address: (1,3,5,7)a4h bit # 15 14 13 12 11 10 9 8 name meims tcer6 tcer5 tcer4 tcer3 tcer2 tcer1 tcer0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tcen7 tcen6 tcen5 tcen4 tcen3 tcen2 tcen1 tcen0 default 0 0 0 0 0 0 0 0 bit 15: manual error insert mode select (meims) ? when 0, the transmit manual error insertion signal (tmei) will not cause errors to be inserted. when 1, tmei will causes an error to be inserted when it transitions from a 0 to a 1. note: enabling tmei does not disable error insertion using tcer[6:0] and tcen[7:0]. manual error insertion is available at the global level, but not on a per-port basis for the cell processor. (port.cr1.meim must be set for global error insertion to insert a packet error.) bits 14 to 8: transmit errored cell insertion rate (tcer[6:0]) ? these seven bits indicate the rate at which errored cells are to be output. one out of every x * 10 y cells is to be an errored cell. tcer[3:0] is the value x, and tcer[6:4] is the value y, which has a maximum value of 6. if tcer[3:0] has a value of 0h errored cell insertion is disabled. if tcer[6:4] has a value of 6xh or 7xh the errored cell rate will be x * 10 6 . a tcer[6:0] value of 01h results in every cell being errored. a tcer[6:0] value of 0fh results in every 15 th cell being errored. a tcer[6:0] value of 11h results in every 10 th cell being errored. errored cell insertion starts when the tecc register is written with a tcer[3:0] value that is non-zero. if the tecc register is written to during the middle of an errored cell insertion process, the current process is halted, and a new process will be started using the new values of tcer[6:0] and tcen[7:0}. errored cell insertion ends when tcen[7:0] errored cells have been transmitted.
ds3181/ds3182/ds3183/DS3184 330 of 389 tcer[3:0] - x tcer[6:4] - y tcer[6:0] error rate (x * 10 y ) 0h xxh x0h disabled 1h 0xh 01h 1 out of 1 cells fh 0xh 0fh 1 out of 15 cells 1h 1xh 11h 1 out of 10 cells 1h 6xh 61h 1 out of 10 6 cells 1h 7xh 71h 1 out of 10 6 cells bits 7 to 0: transmit errored cell insertion number (tcen[7:0]) ? these eight bits indicate the total number of errored cells to be transmitted. a value of ffh results in continuous errored cell insertion at the specified rate. register name: cp.thmrc register description: cell processor transmit hec error mask control register register address: (1,3,5,7)a6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name them7 them6 them5 them4 them3 them2 them1 them0 default 0 0 0 0 0 0 0 0 bits 7 to 0: transmit hec error mask (them[7:0]) ?these bits control the error insertion into the hec byte. setting these bits will corrupt the associated hec bit during cell error insertion. based on the value set in this register, the far end will detect three types of errors: an error in the hec, a single bit error in the header, or multiple bit errors in the header. default (them[7:0] = 00h) is no error inserted. if a single bit error is selected, the table below also shows which bit of the 32-bit hec header will be corrupted. table 12-48 indicates the type of error inserted by a specific mask value. note: if a single bit error is inserted in the hec, and the far-end has single bit error correction enabled, this will cause the indicated header bit to be corrupted.
ds3181/ds3182/ds3183/DS3184 331 of 389 table 12-48. hec error mask value error type bit value error type bit value error type bit 01h-02h hec ? 32h-37h multi ? 87h-88h multi ? 03h multi - 38h single 29 89h single 25 04h hec ? 39h-3fh multi ? 90h-9ah multi ? 05h-06h multi ? 40h hec ? 9bh single 02 07h single 32 41h-42h multi ? 9ch-a1h multi ? 08h hec ? 43h single 11 a2h single 12 09h-0ah multi ? 44h-50h multi ? a3h-a7h multi ? 0bh single 09 51h single 13 a8h single 21 0ch-0dh multi ? 52h-53h multi ? a9h-aah multi ? 0eh single 31 54h single 22 abh single 14 0fh multi ? 55h-56h multi ? ach-adh multi ? 10h hec ? 57h single 20 aeh single 19 11h-14h multi ? 58h single 06 afh multi ? 15h single 24 59h-5ah multi ? b0h single 05 16h single 08 5bh single 18 b1h-b5h multi ? 17h-1dh multi ? 5ch-66h multi ? b6h single 17 1eh single 30 67h single 04 b7h-c6h multi ? 1fh multi ? 68h-6ah multi ? c7h single 26 20h hec ? 6bh single 16 c8h-cdh multi ? 21h-29h multi ? 6ch-6fh multi ? ceh single 03 2ah single 23 70h single 28 cfh-d5h multi ? 2bh multi ? 71h-7fh multi ? d6h single 15 2ch single 07 80h hec ? d7h-dfh multi ? 2dh-30h multi ? 81h-85h multi ? e0h single 27 31h single 01 86h single 10 e1h-ffh multi ?
ds3181/ds3182/ds3183/DS3184 332 of 389 register name: cp.thpc1 register description: cell processor transmit header pattern control register #1 register address: (1,3,5,7)a8h bit # 15 14 13 12 11 10 9 8 name thp15 thp14 thp13 thp12 thp11 thp10 thp9 thp8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name thp7 thp6 thp5 thp4 thp3 thp2 thp1 thp0 default 0 0 0 0 0 0 0 0 bits 15 to 0: transmit programmable header pattern (thp[15:0]) ? lower 16 bits of 32 bits. register description follows next register. register name: cp.thpc2 register description: cell processor transmit header pattern control register #2 register address: (1,3,5,7)aah bit # 15 14 13 12 11 10 9 8 name thp31 thp30 thp29 thp28 thp27 thp26 thp25 thp24 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name thp23 thp22 thp21 thp20 thp19 thp18 thp17 thp16 default 0 0 0 0 0 0 0 0 bits 15 to 0: transmit programmable header pattern (thp[31:16]) upper 16 bits of 32 bits. transmit programmable header pattern (thp[31:0]) ? these 32 bits indicate the header bit pattern to be used in the header of fill cells when the cp.tcr register bit tfch is set. register name: cp.tfppc register description: cell processor transmit fill cell payload pattern control register register address: (1,3,5,7)ach bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tfpp7 tfpp6 tfpp5 tfpp4 tfpp3 tfpp2 tfpp1 tfpp0 default 0 0 0 0 0 0 0 0 bits 7 to 0: transmit fill cell payload pattern (tfpp[7:0]) ? these eight bits indicate the value to be placed in the payload bytes of the fill cells when the cp.tcr register bit tfcp is set..
ds3181/ds3182/ds3183/DS3184 333 of 389 register name: cp.tsr register description: cell processor transmit status register register address: (1,3,5,7)aeh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tecf bit 0: transmit errored cell insertion finished (tecf) ? this bit is set when the number of errored cells indicated by the tcen[7:0] bits in the tecc register have been transmitted. this bit is cleared when errored cell insertion is disabled, or a new errored cell insertion process is initiated. register name: cp.tsrl register description: cell processor transmit status register latched register address: (1,3,5,7)b0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tecfl bit 0: transmit errored cell insertion finished latched (tecfl) ? this bit is set when the tecf bit in the cp.tsr register transitions from zero to one. register name: cp.tsrie register description: cell processor transmit status register interrupt enable register address: (1,3,5,7)b2h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tecfie default 0 0 0 0 0 0 0 0 bit 0: transmit errored cell insertion finished interrupt enable (tecfie) ? this bit enables an interrupt if the tecfl bit in the cp.tsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 334 of 389 register name: cp.tccr1 register description: cell processor transmit cell count register #1 register address: (1,3,5,7)b4h bit # 15 14 13 12 11 10 9 8 name tcc15 tcc14 tcc13 tcc12 tcc11 tcc10 tcc9 tcc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tcc7 tcc6 tcc5 tcc4 tcc3 tcc2 tcc1 tcc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: transmit cell count (tcc[15:0]) ? lower 16 bits of 24 bits. register description follows next register. register name: cp.tccr2 register description: cell processor transmit cell count register #2 register address: (1,3,5,7)b6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tcc23 tcc22 tcc21 tcc20 tcc19 tcc18 tcc17 tcc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: transmit cell count (tcc[23:16]) - upper 8 bits of register. transmit cell count (tcc[23:0]) ? these 24 bits indicate the number of cells extracted from the transmit fifo and output in the outgoing data stream. this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 335 of 389 12.14.2 receive cell processor the receive cell processor block has 18 registers. 12.14.2.1 register map table 12-49. receive cell processor register map address register register description (1,3,5,7)c0h cp.rcr1 cell processor receive control register #1 (1,3,5,7)c2h -- reserved (1,3,5,7)c4h cp.rhpc1 cell processor receive header pattern control register #1 (1,3,5,7)c6h cp.rhpc2 cell processor receive header pattern control register #2 (1,3,5,7)c8h cp.rhpmc1 cell processor receive header pattern mask control register #1 (1,3,5,7)cah cp.rhpmc2 cell processor receive header pattern mask control register #2 (1,3,5,7)cch cp.rltc cell processor receive lcd threshold control register (1,3,5,7)ceh cp.rcpsr cell processor receive status register (1,3,5,7)d0h cp.rcpsrl cell processor receive status register latched (1,3,5,7)d2h cp.rcpsrie cell processor receive register interrupt enable (1,3,5,7)d4h cp.rccr1 cell processor receive cell count register #1 (1,3,5,7)d6h cp.rccr2 cell processor receive cell count register #2 (1,3,5,7)d8h cp.reccr1 cell processor receive errored cell count register #1 (1,3,5,7)dah cp.reccr2 cell processor receive errored cell count register #2 (1,3,5,7)dch cp.rhpcr1 cell processor receive header pattern count register #1 (1,3,5,7)deh cp.rhpcr2 cell processor receive header pattern count register #2 (1,3,5,7)e0h cp.rcccr1 cell processor receive corrected cell count register #1 (1,3,5,7)e2h cp.rcccr2 cell processor receive corrected cell count register #2 (1,3,5,7)e4h cp.rfccr1 cell processor receive filtered cell count register #1 (1,3,5,7)e6h cp.rfccr2 cell processor receive filtered cell count register #2 (1,3,5,7)e8h -- reserved (1,3,5,7)eah -- reserved (1,3,5,7)ech -- reserved (1,3,5,7)eeh -- reserved (1,3,5,7)f0h -- unused (1,3,5,7)f2h -- unused (1,3,5,7)f4h -- unused (1,3,5,7)f6h -- unused (1,3,5,7)f8h -- unused (1,3,5,7)fah -- unused (1,3,5,7)fch -- unused (1,3,5,7)feh -- unused
ds3181/ds3182/ds3183/DS3184 336 of 389 12.14.2.2 register bit descriptions register name: cp.rcr1 register description: cell processor receive control register #1 register address: (1,3,5,7)c0h bit # 15 14 13 12 11 10 9 8 name rdde rdhe reced rhpm1 rhpm0 ricfd rucfe ricfe default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rroc1 rroc0 rcpad rhecd rhde rdd rbre rpte default 0 0 0 0 0 0 0 0 bit 15: receive dss desc rambling enable (rdde) ? when 0, self-synchronous descrambling is enabled. when 1, dss descrambling is enabled. this bit is ignored if descrambling is disabled. note: in byte synchronous and pass-through modes, self-synchronous descrambling is enabled regardless of the setting of this bit. bit 14: receive dqdb hec processing enable (rdhe) ? when 0, the hec is calculated over all four-header bytes. when 1, only the last three header bytes are used for hec calculation. bit 13: receive errored cell extraction disable (reced) ? when 0, errored cells are extracted. when 1, errored cells are passed on. bits 12 to 11: receive header pattern comparison mode (rhpm[1:0]) ? these two bits control the operation of the header pattern comparison function. 00 = count match: cells that match the header pattern are counted. 01 = count no match - cells that do not match the header pattern are counted. 10 = discard match - cells that match the header pattern are counted and discarded. 11 = discard no match - cells that do not match the header pattern are counted and discarded. bit 10: receive idle cell filtering disable (ricfd) ? when 0, idle cells are discarded. when 1, idle cells are passed on. bit 9: receive unassigned cell filtering enable (rucfe) ? when 0, unassigned cells are passed on. when 1, unassigned cells are counted and discarded. bit 8: receive invalid cell filtering enable (ricfe) ? when 0, invalid cells are passed on. when 1, invalid cells are discarded. bits 7 to 6: receive error monito ring required ok cells (rroc[1:0]) ? these two bits indicate the number of good cells required to transition from the "detection" state to the "correction" state, which enables single bit correction of the header (see figure 10-28 ). 00 = 1 good cell is required. 01 = 2 good cells are required. 10 = 4 good cells are required. 11 = 8 good cells are required. bit 5: receive hec coset polynomial addition disable (rcpad) ? when 0, the hec coset polynomial addition is performed prior to checking the hec byte. when 1, hec coset polynomial addition is disabled bit 4: receive header erro r correction disable (rhecd) ? when 0, single bit header error correction is enabled. when 1, header error correction is disabled and all errors are treated as an un-correctable error. bit 3: receive cell header descrambling enable (rhde) ? when 0, only the cell payload will be descrambled. when 1, the entire data stream (cell header and payload) is descrambled. this bit is ignored if descrambling is disabled or dss descrambling is enabled. when cell pass-through mode is enabled, the entire data stream will be descrambled if descrambling is enabled. bit 2: receive descrambling disable (rdd) ? when 0, descrambling is performed. when 1, descrambling is disabled.
ds3181/ds3182/ds3183/DS3184 337 of 389 bit 1: receive bit reordering enable (rbre) ? when 0, bit reordering is disabled (the first bit received is stored in the msb of the receive fifo byte). when 1, bit reordering is enabled (the first bit received is stored in the lsb of the receive fifo byte). bit 0: receive pass-through enable (rpte) ? when 0, pass-through mode is disabled and cell processing is enabled. when 1, the cell processor is in pass-through mode, and all cell processing functions except descrambling and bit reordering are disabled. register name: cp.rhpc1 register description: cell processor receive header pattern control register #1 register address: (1,3,5,7)c4h bit # 15 14 13 12 11 10 9 8 name rhp15 rhp14 rhp13 rhp 12 rhp11 rhp10 rhp9 rhp8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rhp7 rhp6 rhp5 rhp 4 rhp3 rhp2 rhp1 rhp0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive header pattern (rhp[15:0]) ? lower 16 bits of 32 bits. register description follows next register. register name: cp.rhpc2 register description: cell processor receive header pattern control register #2 register address: (1,3,5,7)c6h bit # 15 14 13 12 11 10 9 8 name rhp31 rhp30 rhp29 rhp28 rhp27 rhp26 rhp25 rhp24 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rhp23 rhp22 rhp21 rhp20 rhp19 rhp18 rhp17 rhp16 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive header pattern (rhp[31:16]) - upper 16 bits of 32 bits. receive header pattern (rhp[31:0]) ? these 32 bits indicate the receive header bit pattern to be detected by the header pattern comparison function.
ds3181/ds3182/ds3183/DS3184 338 of 389 register name: cp.rhpmc1 register description: cell processor receive header pattern mask control register #1 register address: (1,3,5,7)c8h bit # 15 14 13 12 11 10 9 8 name rhpd15 rhpd14 rhpd13 rhpd1 2 rhpd11 rhpd10 rhpd9 rhpd8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rhpd7 rhpd6 rhpd5 rhpd4 rhpd3 rhpd2 rhpd1 rhpd0 default 0 0 0 0 0 0 0 0 bit 15 to 0: receive header pattern comparison disable (rhpd[15:0]) ? lower 16 bits of 32 bits. register description follows next register. register name: cp.rhpmc2 register description: cell processor receive header pattern mask control register #2 register address: (1,3,5,7)cah bit # 15 14 13 12 11 10 9 8 name rhpd31 rhpd30 rhpd29 rhpd2 8 rhpd27 rhpd26 rhpd25 rhpd24 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rhpd23 rhpd22 rhpd21 rhpd2 0 rhpd19 rhpd18 rhpd17 rhpd16 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive header pattern comparison disable (rhpd[31:16]) - upper 16 bits of 32 bits. receive header pattern comparison disable (rhpd[31:0]) ? these 32 bits indicate whether or not the associated header bit is checked by the header pattern comparison function. if rhpd[x] is high, the header bit x is ignored during the header pattern comparison (don't care). if rhpd[x] is low, the associated bit in the header must match rhp[x] in the receive header pattern control register rhpc. register name: cp.rltc register description: cell processor receive lcd threshold control register register address: (1,3,5,7)cch bit # 15 14 13 12 11 10 9 8 name rlt15 rlt14 rlt13 rlt12 rlt11 rlt10 rlt9 rlt8 default 0 0 0 0 0 0 0 1 bit # 7 6 5 4 3 2 1 0 name rlt7 rlt6 rlt5 rlt4 rlt3 rlt2 rlt1 rlt0 default 0 1 1 0 1 0 0 0 bits 15 to 0: receive lcd threshold (rlt[15:0]) ? these 16 bits indicate the number of consecutive cell periods the cell delineation state machine must be in an out of cell delineation (ocd) condition before it declares or terminate a loss of cell delineation (lcd) condition. a value of 0000h causes lcd to be declared at the same time as ocd. the register has a default value after reset of 360 (decimal).
ds3181/ds3182/ds3183/DS3184 339 of 389 register name: cp.rsr register description: cell processor receive status register register address: (1,3,5,7)ceh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- oos -- ocd lcd bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- recc rhpc rchc bit 11: out of sync (oos) ? this read-only bit indicates that a dss out of sync (oos) state exists. dss oos occurs when the dss scrambler synchronization state machine is in the "load" or "verify" state, and dss scrambling has been enabled. bit 9: out of cell delineation (ocd) ? this read-only bit indicates that an out of cell delineation condition (ocd) exists. when dss scrambling is disabled, ocd occurs when the hec error monitoring state machine is in the "ocd" state. when dss scrambling is enable, ocd occurs when the dss ocd detection state machine is in the "ocd" state. bit 8: loss of cell delineation (lcd) ? this read-only bit indicate that a loss of cell delineation state exists. lcd occurs when ocd persists for the period programmed in the lcd threshold control register rltc. bit 2: receive errored header cell count (recc) ? this read-only bit indicates that the receive errored header cell count is non-zero. bit 1: receive header pattern cell count (rhpc) ? this read-only bit indicates that the receive header pattern comparison cell count is non-zero. bit 0: receive corrected cell count (rchc) ? this read-only bit indicates that the receive corrected header cell count is non-zero. register name: cp.rsrl register description: cell processor receive status register latched register address: (1,3,5,7)d0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- oosl cocdl ocdcl lcdcl bit # 7 6 5 4 3 2 1 0 name recl rchl ridl rudl rivdl reccl rhpcl rchcl bit 11: out of sync change latched (oosl) ? this bit is set when the oos bit in the cp.rsr register changes state. bit 10: change of cell delineation latched (cocdl) ? this bit is set when the data path cell counters are updated with a new cell delineation that is different from the previous cell delineation. bit 9: out of cell delinea tion change la tched (ocdcl) ? this bit is set when the ocd bit in the cp.rsr register changes state. note: immediately after a reset, this bit will be set to one. bit 8: loss of cell delin eation change latched (lcdcl) ? this bit is set when the lcd bit in the cp.rsr register changes state bit 7: receive errored header cell latched (recl) ? this bit is set when a cell with an errored header is discarded. bit 6: receive corrected header cell latched (rchl) ? this bit is set when a cell with a single header error is corrected. bit 5: receive idle cell detection latched (ridl) ? this bit is set when an idle cell is discarded.
ds3181/ds3182/ds3183/DS3184 340 of 389 bit 4: receive unassigned cell detection latched (rudl) ? this bit is set when an unassigned cell is discarded. bit 3: receive invalid cell detection latched (rivdl) ? this bit is set when an invalid cell is discarded. bit 2: receive errored header cell count latched (reccl) ? this bit is set when the recc bit in the cp.rsr register transitions from zero to one. bit 1: receive header pattern cell count latched (rhpcl) ? this bit is set when the rhpc bit in the cp.rsr register transitions from zero to one. bit 0: receive corrected header cell count latched (rchcl) ? this bit is set when the rchc bit in the cp.rsr register transitions from zero to one. register name: cp.rsrie register description: cell processor receive status register interrupt enable register address/type: (1,3,5,7)d2h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- oosie cocdie ocdcie lcdcie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name recie rchie ridie rudie rivdie reccie rhpcie rchcie default 0 0 0 0 0 0 0 0 bit 11: out of sync change interrupt enable (oosie) ? this bit enables an interrupt if the oosl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 10: change of cell delineat ion interrupt enable (cocdie) ? this bit enables an interrupt if the cocdl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 9: out of cell delineation change interrupt enable (ocdcie) ? this bit enables an interrupt if the ocdcl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 8: loss of cell delineation change interrupt enable (lcdcie) ? this bit enables an interrupt if the lcdcl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 7: receive errored header cell interrupt enable (recie) ? this bit enables an interrupt if the recl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 6: receive corrected header cell interrupt enable (rchie) ? this bit enables an interrupt if the rchl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 5: receive idle cell detect ion interrupt enable (ridie) ? this bit enables an interrupt if the ridl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 341 of 389 bit 4: receive unassigned cell de tection interrupt enable (rudie) ? this bit enables an interrupt if the rudl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: receive invalid cell detection interrupt enable (rivdie) ? this bit enables an interrupt if the rivdl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: receive errored header cell count interrupt enable (reccie) ? this bit enables an interrupt if the reccl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: receive header pattern ce ll count interrupt enable (rhpcie) ? this bit enables an interrupt if the rhfcl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: receive corrected header cell count interrupt enable (rchcie) ? this bit enables an interrupt if the rchcl bit in the cp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: cp.rccr1 register description: cell processor receive cell count register #1 register address: (1,3,5,7)d4h bit # 15 14 13 12 11 10 9 8 name rcc15 rcc14 rcc13 rcc12 rcc11 rcc10 rcc9 rcc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rcc7 rcc6 rcc5 rcc4 rcc3 rcc2 rcc1 rcc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive cell count (rcc[15:0]) ? lower 16 bits of 24 bits. register description follows next register. register name: cp.rccr2 register description: cell processor receive cell count register #2 register address: (1,3,5,7)d6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rcc23 rcc22 rcc21 rcc20 rcc19 rcc18 rcc17 rcc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive cell count (rcc[23:16]) - upper 8 bits of register. receive cell count (rcc[23:0]) ? these 24 bits indicate the number of cells stored in the receive fifo. note: cells discarded due to system loopback or an overflow condition will be included in this count. this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 342 of 389 register name: cp.reccr1 register description: cell processor receive errored header count register #1 register address: (1,3,5,7)d8h bit # 15 14 13 12 11 10 9 8 name recc15 recc14 recc13 recc12 recc11 recc10 recc9 recc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name recc7 recc6 recc5 recc4 recc3 recc2 recc1 recc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive errore d header count (recc[15:0]) ? lower 16 bits of 24 bits. register description follows next register. register name: cp.reccr2 register description: cell processor receive errored header count register #2 register address: (1,3,5,7)dah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name recc23 recc22 recc21 recc20 recc19 recc18 recc17 recc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive errored header count (recc[23:16]) receive errored header count (recc[23:0]) ? these 24 bits indicate the number of cells received with uncorrected header errors and discarded. if errored cell extraction is disabled, this count will be zero. cells included in this count will not be included in any other count. this register is updated via the pmu signal (see section 10.4.5 ). register name: cp.rhpcr1 register description: cell processor receive header pattern cell count register #1 register address: (1,3,5,7)dch bit # 15 14 13 12 11 10 9 8 name rhpc15 rhpc14 rhpc13 rhpc12 rhpc11 rhpc10 rhpc9 rhpc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rhpc7 rhpc6 rhpc5 rhpc4 rhpc3 rhpc2 rhpc1 rhpc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive header pattern comparison cell count (rhpc[15:0]) ? lower 16 bits of 24 bits. register description follows next register.
ds3181/ds3182/ds3183/DS3184 343 of 389 register name: cp.rhpcr2 register description: cell processor receive header pattern cell count register #2 register address: (1,3,5,7)deh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rhpc23 rhpc22 rhpc21 rhpc20 rhpc19 rhpc18 rhpc17 rhpc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive header pattern comparison cell count (rhpc[23:16]) - upper 8 bits of register . receive header pattern compar ison cell count (rhpc[23:0]) ? these 24 bits indicate the number of cells identified during the header pattern comparison processes. in the header pattern comparison count and discard match modes, this will be a count of cells with a matching header. in the header pattern comparison count and discard no match modes, this will be a count of cells without a matching header. in the header pattern comparison count (match and no match) modes, this count will also be included in the receive cell count registers. in the header pattern comparison discard (match or no match) modes, this count will not be included in any other count. this register is updated via the pmu signal (see section 10.4.5 ). register name: cp.rcccr1 register description: cell processor receive corrected cell count register #1 register address: (1,3,5,7)e0h bit # 15 14 13 12 11 10 9 8 name rchc15 rchc14 rchc13 rchc12 rchc11 rchc10 rchc9 rchc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rchc7 rchc6 rchc5 rchc4 rchc3 rchc2 rchc1 rchc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive correct ed header count (rchc[15:0]) ? lower 16 bits of 24 bits. register description follows next register. register name: cp.rcccr2 register description: cell processor receive corrected cell count register #2 register address: (1,3,5,7)e2h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rchc23 rchc22 rchc21 rchc20 rchc19 rchc18 rchc17 rchc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive corrected header count (rchc[23:16]) - upper 8 bits of register. receive corrected head er count (rchc[23:0]) ? these 24 bits indicate the number of cells that have had header errors corrected. if header error correction is disabled, this count will be zero. this count will be included in the receive cell count registers ( cp.rccr ), receive filtered idle/unassigned/invalid cell count registers ( cp.rfccr ), or receive header pattern cell count registers ( cp.rhpcr ). this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 344 of 389 register name: cp.rfccr1 register description: cell processor receive filtered idle/una ssigned/invalid cell count register #1 register address: (1,3,5,7)e4h bit # 15 14 13 12 11 10 9 8 name rfcc15 rfcc14 rfcc13 rfcc12 rfcc11 rfcc10 rfcc9 rfcc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rfcc7 rfcc6 rfcc5 rfcc4 rfcc3 rfcc2 rfcc1 rfcc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive filtered cell count (rfcc[15:0]) ? lower 16 bits of 24 bits. register description follows next register. register name: cp.rfccr2 register description: cell processor receive filtered idle/una ssigned/invalid cell count register #2 register address: (1,3,5,7)e6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rfcc23 rfcc22 rfcc21 rfcc20 rfcc19 rfcc18 rfcc17 rfcc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive filtered cell count (rfcc[23:16]) - upper 8 bits of register. receive filtered cell count (rfcc[23:0]) ? these 24 bits indicate the number of cells that were discarded during the cell filtering processes (idle, unassigned, and/or invalid). if all cell filtering is disabled, this count will be zero. cells included in this count will not be included in any other count. this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 345 of 389 12.14.3 transmit packet processor register map the transmit packet processor block uses 10 registers. note: these registers are shared with the transmit cell processor registers. table 12-50. transmit packet processor register map address register register description (1,3,5,7)a0h pp.tcr packet processor transmit control register (1,3,5,7)a2h pp.tifgc packet processor transmit inter-frame gapping control register (1,3,5,7)a4h pp.tepc packet processor transmit errored packet control register (1,3,5,7)a6h -- reserved (1,3,5,7)a8h -- reserved (1,3,5,7)aah -- reserved (1,3,5,7)ach -- reserved (1,3,5,7)aeh pp.tsr packet processor transmit status register (1,3,5,7)b0h pp.tsrl packet processor transmit status register latched (1,3,5,7)b2h pp.tsrie packet processor transmit status register interrupt enable (1,3,5,7)b4h pp.tpcr1 packet processor transmit packet count register #1 (1,3,5,7)b6h pp.tpcr2 packet processor transmit packet count register #2 (1,3,5,7)b8h pp.tbcr1 packet processor transmit byte count register #1 (1,3,5,7)bah pp.tbcr2 packet processor transmit byte count register #2 (1,3,5,7)bch -- unused (1,3,5,7)beh -- unused 12.14.3.1 register bit descriptions register name: pp.tcr register description: packet processor transmit control register register address: (1,3,5,7)a0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved reserved reserved default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfad tf16 tifv tsd tbre tpte default 0 0 0 0 0 0 0 0 bit 5: transmit fcs append disable (tfad) ? this bit controls whether or not a fcs is appended to the end of each packet. when 0, the calculated fcs bytes are appended to the end of the packet. when 1, the packet is transmitted without a fcs. bit 4: transmit fcs-16 enable (tf16) ? when 0, the fcs processing uses a 32-bit fcs. when 1, the fcs processing uses a 16-bit fcs bit 3: transmit bit synchronous inter-frame fill value (tifv) ? when 0, inter-frame fill is done with the flag sequence (7eh). when 1, inter-frame fill is done with all '1's. this bit is ignored in octet aligned mode. bit 2: transmit scrambling disable (tsd) ? when 0, scrambling is performed. when 1, scrambling is disabled. bit 1: transmit bit reordering enable (tbre) ? when 0, bit reordering is disabled (the first bit transmitted is from the msb of the transmit fifo byte). when 1, bit reordering is enabled (the first bit transmitted is from the lsb of the transmit fifo byte).
ds3181/ds3182/ds3183/DS3184 346 of 389 bit 0: transmit pass-through enable (tpte) ? when 0, pass-through mode is disabled and packet processing is enabled. when 1, the packet processor is in pass-through mode and all packet-processing functions except scrambling and bit reordering are disabled. register name: pp.tifgc register description: packet processor transmit inter-frame gapping control register register address: (1,3,5,7)a2h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tifg7 tifg6 tifg5 tifg4 tifg3 tifg2 tifg1 tifg0 default 0 0 0 0 0 0 0 1 bits 7 to 0: transmit inter-frame gapping (tifg[7:0]) ? these eight bits indicate the number of additional flags and bytes of inter-frame fill to be inserted between packets. the number of flags and bytes of inter-frame fill between packets will be at least the value of tifg[7:0] plus 1. note: if inter-frame fill is set to all 1?s, a tfig value of 2 or 3 will result in a flag, at least two bytes of 1?s, and a flag between packets. register name: pp.tepc register description: packet processor transmit errored packet control register register address: (1,3,5,7)a4h bit # 15 14 13 12 11 10 9 8 name meims tper6 tper5 tper 4 tper3 tper2 tper1 tper0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tpen7 tpen6 tpen5 tpen 4 tpen3 tpen2 tpen1 tpen0 default 0 0 0 0 0 0 0 0 bit 15: manual error insert mode select (meims) ? when 0, the transmit manual error insertion signal (tmei) will not cause errors to be inserted. when 1, tmei will causes an error to be inserted when it transitions from a 0 to a 1. note: enabling tmei does not disable error insertion using tper[6:0] and tpen[7:0]. manual error insertion is available at the global level but not on a per-port basis for the packet processor. (port.cr1.meim must be set for global error insertion to insert a packet error.) bits 14 to 8: transmit errored packet insertion rate (tper[6:0]) ? these seven bits indicate the rate at which errored packets are to be output. one out of every x * 10 y packets is to be an errored packet. tper[3:0] is the value x, and tper[6:4] is the value y, which has a maximum value of 6. if tper[3:0] has a value of 0h errored packet insertion is disabled. if tper[6:4] has a value of 6xh or 7xh the errored packet rate will be x * 10 6 . a tper[6:0] value of 01h results in every packet being errored. a tper[6:0] value of 0fh results in every 15 th packet being errored. a tper[6:0] value of 11h result in every 10 th packet being errored. errored packet insertion starts when the pp.tepc register is written with a tper[3:0] value that is non-zero. if the pp.tepc register is written to during the middle of an errored packet insertion process, the current process is halted, and a new process will be started using the new values of tper[6:0] and tpen[7:0}. errored packet insertion ends when tpen[7:0] errored packets have been transmitted. bits 7 to 0: transmit errored packet insertion number (tpen[7:0]) ? these eight bits indicate the total number of errored packets to be transmitted. a value of ffh results in continuous errored packet insertion at the specified rate.
ds3181/ds3182/ds3183/DS3184 347 of 389 register name: pp.tsr register description: packet processor transmit status register register address: (1,3,5,7)aeh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tepf bit 0: transmit errored packet insertion finished (tepf) ? this bit is set when the number of errored packets indicated by the tpen[7:0] bits in the pp.tepc register have been transmitted. this bit is cleared when errored packet insertion is disabled, or a new errored packet insertion process is initiated. register name: pp.tsrl register description: packet processor transmit status register latched register address: (1,3,5,7)b0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tepfl bit 0: transmit errored packet insertion finished latched (tepfl) ? this bit is set when the tepf bit in the pp.tsr register transitions from zero to one. register name: pp.tsrie register description: packet processor transmit status register interrupt enable register address: (1,3,5,7)b2h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tepfie default 0 0 0 0 0 0 0 0 bit 0: transmit errored packet insertion finished interrupt enable (tepfie) ? this bit enables an interrupt if the tepfl bit in the pp.tsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 348 of 389 register name: pp.tpcr1 register description: packet processor transmit packet count register #1 register address: (1,3,5,7)b4h bit # 15 14 13 12 11 10 9 8 name tpc15 tpc14 tpc13 tpc12 tpc11 tpc10 tpc9 tpc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tpc7 tpc6 tpc5 tpc4 tpc3 tpc2 tpc1 tpc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: transmit packet count (tpc[15:0]) ? lower 16 bits of 24 bits. register description follows next register. register name: pp.tpcr2 register description: packet processor transmit packet count register #2 register address: (1,3,5,7)b6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tpc23 tpc22 tpc21 tpc20 tpc19 tpc18 tpc17 tpc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: transmit packet count (tpc[23:16]) - upper 8 bits of register. transmit packet count (tpc[23:0]) ? these 24 bits indicate the number of packets extracted from the transmit fifo and output in the outgoing data stream. this register is updated via the pmu signal (see section 10.4.5 ). register name: pp.tbcr1 register description: packet processor transmit byte count register #1 register address: (1,3,5,7)b8h bit # 15 14 13 12 11 10 9 8 name tbc15 tbc14 tbc13 tbc12 tbc11 tbc10 tbc9 tbc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tbc7 tbc6 tbc5 tbc4 tbc3 tbc2 tbc1 tbc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: transmit byte count (tbc[15:0]) ? lower 16 bits of 32 bits. register description follows next register.
ds3181/ds3182/ds3183/DS3184 349 of 389 register name: pp.tbcr2 register description: packet processor transmit byte count register #2 register address: (1,3,5,7)bah bit # 15 14 13 12 11 10 9 8 name tbc31 tbc30 tbc29 tbc28 tbc27 tbc26 tbc25 tbc24 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tbc23 tbc22 tbc21 tbc20 tbc19 tbc18 tbc17 tbc16 default 0 0 0 0 0 0 0 0 bits 15 to 0: transmit byte count (tbc[31:16]) - upper 16 bits of 32 bits. transmit byte count (tbc[31:0]) ? these 32 bits indicate the number of packet bytes inserted in the outgoing data stream. this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 350 of 389 12.14.4 receive packet processor register map the receive packet processor block has 17 registers. table 12-51. receive packet processor register map address register register description (1,3,5,7)c0h pp.rcr packet processor receive control register (1,3,5,7)c2h pp.rmpsc packet processor receive maximum packet size control register (1,3,5,7)c4h -- reserved (1,3,5,7)c6h -- reserved (1,3,5,7)c8h -- reserved (1,3,5,7)cah -- reserved (1,3,5,7)cch -- reserved (1,3,5,7)ceh pp.rsr packet processor receive status register (1,3,5,7)d0h pp.rsrl packet processor receive status register latched (1,3,5,7)d2h pp.rsrie packet processor receive status register interrupt enable (1,3,5,7)d4h pp.rpcr1 packet processor receive packet count register #1 (1,3,5,7)d6h pp.rpcr2 packet processor receive packet count register #2 (1,3,5,7)d8h pp.rfpcr1 packet processor receive fcs erred packet count register #1 (1,3,5,7)dah pp.rfpcr2 packet processor receive fcs erred packet count register #2 (1,3,5,7)dch pp.rapcr1 packet processor receive aborted packet count register #1 (1,3,5,7)deh pp.rapcr2 packet processor receive aborted packet count register #2 (1,3,5,7)e0h pp.rspcr1 packet processor receive size violation packet count register #1 (1,3,5,7)e2h pp.rspcr2 packet processor receive size violation packet count register #2 (1,3,5,7)e4h -- reserved (1,3,5,7)e6h -- reserved (1,3,5,7)e8h pp.rbcr1 packet processor receive byte count register #1 (1,3,5,7)eah pp.rbcr2 packet processor receive byte count register #2 (1,3,5,7)ech pp.rebcr1 packet processor receive errored byte count register #1 (1,3,5,7)eeh pp.rebcr2 packet processor receive errored byte count register #2 (1,3,5,7)f0h -- unused (1,3,5,7)f2h -- unused (1,3,5,7)f4h -- unused (1,3,5,7)f6h -- unused (1,3,5,7)f8h -- unused (1,3,5,7)fah -- unused (1,3,5,7)fch -- unused (1,3,5,7)feh -- unused
ds3181/ds3182/ds3183/DS3184 351 of 389 12.14.4.1 register bit descriptions register name: pp.rcr register description: packet processor receive control register register address: (1,3,5,7)c0h bit # 15 14 13 12 11 10 9 8 name rmns7 rmns6 rmns5 rmns4 rmns3 rmns2 rmns1 rmns0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name reserved reserved rfpd rf16 rfed rdd rbre rpte default 0 0 0 0 0 0 0 0 bits 15 to 8: receive minimum packet size (rmns[7:0]) ? these eight bits indicate the minimum allowable packet size in bytes. the size includes the fcs bytes, but excludes bit/byte stuffing. note: in fcs-32 mode, packets with six bytes are the minimum packet size allowed, in fcs-16 mode, packets with four bytes are the minimum packet size allowed, and when fcs processing is disabled, packets with two bytes are the minimum packet size allowed. packets less than the minimum size will be aborted. bit 5: receive fcs processing disable (rfpd) ? when 0, fcs processing is performed (the packets have an fcs appended). when 1, fcs processing is disabled (the packets do not have an fcs appended). bit 4: receive fcs-16 enable (rf16) ? when 0, the error checking circuit uses a 32-bit fcs. when 1, the error checking circuit uses a 16-bit fcs. this bit is ignored when fcs processing is disabled. bit 3: receive fcs extraction disable (rfed) ? when 0, the fcs bytes are discarded. when 1, the fcs bytes are passed on. this bit is ignored when fcs processing is disabled. bit 2: receive descrambling disable (rdd) ? when 0, descrambling is performed. when 1, descrambling is disabled. bit 1: receive bit reordering enable (rbre) ? when 0, bit reordering is disabled (the first bit received is stored in the msb of the receive fifo byte). when 1, bit reordering is enabled (the first bit received is stored in the lsb of the receive fifo byte). bit 0: receive pass-through enable (rpte) ? when 0, pass-through mode is disabled and packet processing is enabled. when 1, pass-through mode is enabled, and all packet-processing functions except descrambling and bit reordering are disabled. register name: pp.rmpsc register description: packet processor receive maximum packet size control register register address: (1,3,5,7)c2h bit # 15 14 13 12 11 10 9 8 name rmx15 rmx14 rmx13 rmx12 rmx11 rmx10 rmx9 rmx8 default 0 0 0 0 0 1 1 0 bit # 7 6 5 4 3 2 1 0 name rmx7 rmx6 rmx5 rmx4 rmx3 rmx2 rmx1 rmx0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive maximum packet size (rmx[15:0]) ? these 16 bits indicate the maximum allowable packet size in bytes. the size includes the fcs bytes, but excludes bit/byte stuffing. note: if the maximum packet length is less than the minimum packet length, all packets will be aborted. when packet processing is disabled, these 16 bits indicate the "packet" size the incoming data is to be broken into.
ds3181/ds3182/ds3183/DS3184 352 of 389 register name: pp.rsr register description: packet processor receive status register register address: (1,3,5,7)ceh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved reserved reserved bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- repc rapc rspc bit 2: receive fcs errored packet count (repc) ? this read-only bit indicates that the receive fcs errored packet count is non-zero. bit 1: receive aborted packet count (rapc) ? this read-only bit indicates that the receive aborted packet count is non-zero. bit 0: receive size violation packet count (rspc) ? this read-only bit indicates that the receive size violation packet count is non-zero. register name: pp.rsrl register description: packet processor receive status register latched register address: (1,3,5,7)d0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved reserved reserved bit # 7 6 5 4 3 2 1 0 name repl rapl ripdl rspdl rlpdl repcl rapcl rspcl bit 7: receive fcs errored packet latched (repl) ? this bit is set when a packet with an errored fcs is detected. bit 6: receive aborted packet latched (rapl) ? this bit is set when a packet with an abort indication is detected. bit 5: receive invalid packet detected latched (ripdl) ? this bit is set when a packet with a non-integer number of bytes is detected. bit 4: receive small packet detected latched (rspdl) ? this bit is set when a packet smaller than the minimum packet size is detected. bit 3: receive large packet detected latched (rlpdl) ? this bit is set when a packet larger than the maximum packet size is detected. bit 2: receive fcs errored packet count latched (repcl) ? this bit is set when the repc bit in the rppsr register transitions from zero to one. bit 1: receive aborted packet count latched (rapcl) ? this bit is set when the rapc bit in the rppsr register transitions from zero to one. bit 0: receive size violation packet count latched (rspcl) ? this bit is set when the rspc bit in the rppsr register transitions from zero to one.
ds3181/ds3182/ds3183/DS3184 353 of 389 register name: pp.rsrie register description: packet processor receive status register interrupt enable register address: (1,3,5,7)d2h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved reserved reserved default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name repie rapie ripdie rspdie rlpdie repcie rapcie rspcie default 0 0 0 0 0 0 0 0 bit 7: receive fcs errored packet interrupt enable (repie) ? this bit enables an interrupt if the repl bit in the pp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 6: receive aborted packet interrupt enable (rapie) ? this bit enables an interrupt if the rapl bit in the pp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 5: receive invalid packet detected interrupt enable (ripdie) ? this bit enables an interrupt if the ripdl bit in the pp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: receive small packet detected interrupt enable (rspdie) ? this bit enables an interrupt if the rspdl bit in the pp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: receive large packet detected interrupt enable (rlpdie) ? this bit enables an interrupt if the rlpdl bit in the pp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: receive fcs errored packet count interrupt enable (repcie) ? this bit enables an interrupt if the repcl bit in the pp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. must be set low when the packets do not have a fcs appended. 0 = interrupt disabled 1 = interrupt enabled bit 1: receive aborted packet c ount interrupt enable (rapcie) ? this bit enables an interrupt if the rapcl bit in the pp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: receive size violation pac ket count interrupt enable (rspcie) ? this bit enables an interrupt if the rspcl bit in the pp.rsrl register is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3181/ds3182/ds3183/DS3184 354 of 389 register name: pp.rpcr1 register description: packet processor receive packet count register #1 register address: (1,3,5,7)d4h bit # 15 14 13 12 11 10 9 8 name rpc15 rpc14 rpc13 rpc12 rpc11 rpc10 rpc9 rpc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rpc7 rpc6 rpc5 rpc4 rpc3 rpc2 rpc1 rpc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive packet count (rpc[15:0]) ? lower 16 bits of 24 bits. register description follows next register. register name: pp.rpcr2 register description: packet processor receive packet count register #2 register address: (1,3,5,7)d6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rpc23 rpc22 rpc21 rpc20 rpc19 rpc18 rpc17 rpc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive packet count (rpc[23:16]) - upper 8 bits of register. receive packet count (rpc[23:0]) ? these 24 bits indicate the number of packets stored in the receive fifo without an abort indication. note: packets discarded due to system loopback or an overflow condition will be included in this count. this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 355 of 389 register name: pp.rfpcr1 register description: packet processor receive fcs errored packet count register #1 register address: (1,3,5,7)d8h bit # 15 14 13 12 11 10 9 8 name rfpc15 rfpc14 rfpc13 rfpc12 rfpc11 rfpc10 rfpc9 rfpc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rfpc7 rfpc6 rfpc5 rfpc4 rfpc3 rfpc2 rfpc1 rfpc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive fcs errored packet count (rfpc[15:0]) ? lower 16 bits of 24 bits. register description follows next register. register name: pp.rfpcr2 register description: packet processor receive fcs errored packet count register #2 register address: (1,3,5,7)dah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rfpc23 rfpc22 rfpc21 rfpc20 rfpc19 rfpc18 rfpc17 rfpc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive fcs errored packet count (rfpc[7:0]) receive fcs errored packet count (rfpc[23:0]) ? these 24 bits indicate the number of packets received with a fcs error. the byte count for these packets is included in the receive aborted byte count register pp.rebcr . this register is updated via the pmu signal (see section 10.4.5 ). register name: pp.rapcr1 register description: packet processor receive aborted packet count register #1 register address: (1,3,5,7)dch bit # 15 14 13 12 11 10 9 8 name rapc15 rapc14 rapc13 rapc12 rapc11 rapc10 rapc9 rapc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rapc7 rapc6 rapc5 rapc4 rapc3 rapc2 rapc1 rapc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive aborted packet count (rapc[15:0]) ? lower 16 bits of 24 bits. register description follows next register.
ds3181/ds3182/ds3183/DS3184 356 of 389 register name: pp.rapcr2 register description: packet processor receive aborted packet count register #2 register address: (1,3,5,7)deh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rapc23 rapc22 rapc21 rapc20 rapc19 rapc18 rapc17 rapc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive aborted packet count (rapc[23:16]) - upper 8 bits of register. receive aborted packet count (rapc[23:0]) ? these 24 bits indicate the num ber of packets received with a packet abort indication. the byte count for these packets is included in the receive aborted byte count register pp.rebcr . this register is updated via the pmu signal (see section 10.4.5 ). register name: pp.rspcr1 register description: packet processor receive size violation packet count register #1 register address: (1,3,5,7)e0h bit # 15 14 13 12 11 10 9 8 name rspc15 rspc14 rspc13 rspc12 rspc11 rspc10 rspc9 rspc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rspc7 rspc6 rspc5 rspc4 rspc3 rspc2 rspc1 rspc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive size viol ation packet count (rspc[15:0]) ? lower 16 bits of 24 bits. register description follows next register. register name: pp.rspcr2 register description: packet processor receive size violation packet count register #2 register address: (1,3,5,7)e2h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rspc23 rspc22 rspc21 rspc20 rspc19 rspc18 rspc17 rspc16 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive size violation packet count (rspc[23:16]) - upper 8 bits of register. receive size violation packet count (rspc[23:0]) ? these 24 bits indicate the number of packets received with a packet size violation (below minimum, above maximum, or non-integer number of bytes). the byte count for these packets is included in the receive aborted byte count register pp.rebcr .
ds3181/ds3182/ds3183/DS3184 357 of 389 register name: pp.rbcr1 register description: packet processor receive byte count register #1 register address: (1,3,5,7)e8h bit # 15 14 13 12 11 10 9 8 name rbc15 rbc14 rbc13 rbc12 rbc11 rbc10 rbc9 rbc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rbc7 rbc6 rbc5 rbc4 rbc3 rbc2 rbc1 rbc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive byte count (rbc[15:0]) ? lower 16 bits of 32 bits. register description follows next register. register name: pp.rbcr2 register description: packet processor receive byte count register #2 register address: (1,3,5,7)eah bit # 15 14 13 12 11 10 9 8 name rbc31 rbc30 rbc29 rbc28 rbc27 rbc26 rbc25 rbc24 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rbc23 rbc22 rbc21 rbc20 rbc19 rbc18 rbc17 rbc16 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive byte count (rbc[31:16]) - upper 16 bits of 32 bits. receive byte count (rbc[31:0]) ? these 32 bits indicate the number of bytes contained in packets stored in the receive fifo without an error indication. note: bytes discarded due to fcs extraction, system loopback, fifo reset, or an overflow condition may be included in this count. this register is updated via the pmu signal (see section 10.4.5 ). register name: pp.rebcr1 register description: packet processor receive errored byte count register #1 register address: (1,3,5,7)ech bit # 15 14 13 12 11 10 9 8 name rebc15 rebc14 rebc13 rebc12 rebc11 rebc10 rebc9 rebc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rebc7 rebc6 rebc5 rebc4 rebc3 rebc2 rebc1 rebc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive errored byte count (rebc[15:0]) ? lower 16 bits of 32 bits. register description follows next register.
ds3181/ds3182/ds3183/DS3184 358 of 389 register name: pp.rebcr2 register description: packet processor receive errored byte count register #2 register address: (1,3,5,7)eeh bit # 15 14 13 12 11 10 9 8 name rebc31 rebc30 rebc29 rebc28 rebc27 rebc26 rebc25 rebc24 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rebc23 rebc22 rebc21 rebc20 rebc19 rebc18 rebc17 rebc16 default 0 0 0 0 0 0 0 0 bits 15 to 0: receive errored byte count (rebc[31:16]) - upper 16 bits of 32 bits. receive errored byte count (rebc[31:0]) ? these 32 bits indicate the number of bytes contained in packets stored in the receive fifo with an error indication. note: bytes discarded due to fcs extraction, system loopback, fifo reset, or an overflow condition may be included in this count. this register is updated via the pmu signal (see section 10.4.5 ).
ds3181/ds3182/ds3183/DS3184 359 of 389 13 jtag information 13.1 jtag description this device supports the standard instruction codes sample/preload, bypass, and extest. optional public instructions included are highz, clamp, and idcode. the device contains the following items, which meet the requirements set by the ieee 1149.1 standard test access port (tap) and boundary scan architecture: test access port (tap) tap controller instruction register bypass register boundary scan register device identification register the test access port has the necessary interface pins, namely jtclk, jtdi, jtdo, and jtms, and the optional jtrst input. details on these pins can be found in section 8 . refer to ieee 1149.1-1990, ieee 1149.1a-1993, and ieee 1149.1b-1994 for details about the boundary scan architecture and the test access port. figure 13-1. jtag block diagram boundary scan register identification register bypass register instruction register test access port controller mux select tri-state jtdi 10k jtms 10k jtclk jtrst* 10k jtdo 13.2 jtag tap controller state machine description this section covers the details on the operation of the test access port (tap) controller state machine. see figure 13-2 for details on each of the states described below. the tap controller is a finite state machine that responds to the logic level at jtms on the rising edge of jtclk.
ds3181/ds3182/ds3183/DS3184 360 of 389 figure 13-2. jtag tap controller state machine test-logic-reset run-test/idle select dr-scan 1 0 capture-dr 1 0 shift-dr 0 1 exit1- dr 1 0 pause-dr 1 exit2-dr 1 update-dr 0 0 1 select ir-scan 1 0 capture-ir 0 shift-ir 0 1 exit1-ir 1 0 pause-ir 1 exit2-ir 1 update-ir 0 0 1 0 0 1 0 1 0 1 test-logic-reset. when jtrst is changed from low to high, the tap controller starts in the test-logic-reset state, and the instruction register is loaded with the idcode instruction. all system logic and i/o pads on the device operate normally. this state can also be reached from any other state by holding jtms high and clocking jtclk five times. run-test-idle. run-test-idle is used between scan operations or during specific tests. the instruction register and test register remain idle. select-dr-scan. all test registers retain their previous state. with jtms low, a rising edge of jtclk moves the controller into the capture-dr state and initiates a scan sequence. jtms high moves the controller to the select- ir-scan state. capture-dr. data may be parallel loaded into the test data register selected by the current instruction. if the instruction does not call for a parallel load or the selected register does not allow parallel loads, the test register remains at its current value. on the rising edge of jtclk, the controller goes to the shift-dr state if jtms is low or to the exit1-dr state if jtms is high. shift-dr. the test data register selected by the current instruction is connected between jtdi and jtdo and shifts data one stage toward its serial output on each rising edge of jtclk. if a test register selected by the current instruction is not placed in the serial path, it maintains its previous state.
ds3181/ds3182/ds3183/DS3184 361 of 389 exit1-dr. while in this state, a rising edge on jtclk with jtms high puts the controller in the update-dr state that terminates the scanning process. a rising edge on jtclk with jtms low puts the controller in the pause-dr state. pause-dr. shifting of the test registers is halted while in this state. all test registers selected by the current instruction retain their previous state. the controller remains in this state while jtms is low. a rising edge on jtclk with jtms high puts the controller in the exit2-dr state. exit2-dr. while in this state, a rising edge on jtclk with jtms high puts the controller in the update-dr state and terminate the scanning process. a rising edge on jtclk with jtms low puts the controller in the shift-dr state. update-dr. a falling edge on jtclk while in the update-dr state latches the data from the shift register path of the test registers into the data output latches. this prevents changes at the parallel output due to changes in the shift register. a rising edge on jtclk with jtms low, puts the controller in the run-test-idle state. with jtms high, the controller enters the select-dr-scan state. select-ir-scan. all test registers retain their previous state. the instruction register remains unchanged during this state. with jtms low, a rising edge on jtclk moves the controller into the capture-ir state and initiates a scan sequence for the instruction register. jtms high during a rising edge on jtclk puts the controller back into the test-logic-reset state. capture-ir. the capture-ir state is used to load the shift register in the instruction register with a fixed value of 001. this value is loaded on the rising edge of jtclk. if jtms is high on the rising edge of jtclk, the controller enters the exit1-ir state. if jtms is low on the rising edge of jtclk, the controller enters the shift-ir state. shift-ir. in this state, the shift register in the instruction register is connected between jtdi and jtdo and shifts data one stage for every rising edge of jtclk toward the serial output. the parallel registers, as well as all test registers, remain at their previous states. a rising edge on jtclk with jtms high moves the controller to the exit1- ir state. a rising edge on jtclk with jtms low keeps the controller in the shift-ir state while moving data one stage through the instruction shift register. exit1-ir. a rising edge on jtclk with jtms low puts the controller in the pause-ir state. if jtms is high on the rising edge of jtclk, the controller enters the update-ir state and terminate the scanning process. pause-ir. shifting of the instruction register is halted temporarily. with jtms high, a rising edge on jtclk puts the controller in the exit2-ir state. the controller remains in the pause-ir state if jtms is low during a rising edge on jtclk. exit2-ir. a rising edge on jtclk with jtms high put the controller in the update-ir state. the controller loops back to the shift-ir state if jtms is low during a rising edge of jtclk in this state. update-ir. the instruction shifted into the instruction shift register is latched into the parallel output on the falling edge of jtclk as the controller enters this state. once latched, this instruction becomes the current instruction. a rising edge on jtclk with jtms low, puts the controller in the run-test-idle state. with jtms high, the controller enters the select-dr-scan state. 13.3 jtag instruction register and instructions the instruction register contains a shift register as well as a latched parallel output and is 3 bits in length. when the tap controller enters the shift - ir state, the instruction shift register is connected between jtdi and jtdo. while in the shift - ir state, a rising edge on jtclk with jtms low shifts data one stage toward the serial output at jtdo. a rising edge on jtclk in the exit1 - ir state or the exit2 - ir state with jtms high moves the controller to the update - ir state. the falling edge of that same jtclk latches the data in the instruction shift register to the instruction parallel output. instructions supported by the device and their respective operational binary codes are shown in table 13-1 .
ds3181/ds3182/ds3183/DS3184 362 of 389 table 13-1. jtag instruction codes instructions selected regi ster instruction codes extest boundary scan 000 idcode device identification 001 sample/preload boundary scan 010 clamp bypass 011 highz bypass 100 ---- bypass 101 ---- bypass 110 bypass bypass 111 sample/preload. this is a mandatory instruction for the ieee 1149.1 specification. this instruction supports two functions. the digital i/os of the device can be sampled at the boundary scan register without interfering with the normal operation of the device and the boundary scan register can be pre-loaded for the extest instruction. the positive edge of jtclk in the capture - dr state samples all digital input pins into the boundary scan register. the boundary scan register is connected between jtdi and jtdo. the data on jtdi pin is clocked into the boundary scan register and the data captured in the capture-dr state is shifted out the tdo pin in the shift - dr state. extest. this is a mandatory instruction for the ieee 1149.1 specification. this instruction allows testing of all interconnections to the device. when the extest instruction is latched in the instruction register, the following actions occur. once enabled by the update - ir state, the parallel outputs of all digital output pins are driven according to the values in the boundary scan registers on the positive edge of jtclk. the boundary scan register is connected between jtdi and jtdo. the positive edge of jtclk in the capture - dr state samples all digital input pins into the boundary scan register. the negative edge of jtclk in the update-dr state causes all of the digital output pins to be driven according to the values in the boundary scan registers that have been shifted in during the shift-dr state. the outputs are returned to their normal mode or hiz mode at the positive edge of jtclk during the update-ir state when an instruction other than extest or clamp is activated. bypass. this is a mandatory instruction for the ieee 1149.1 specification. when the bypass instruction is latched into the parallel instruction register, jtdi connects to jtdo through the 1 - bit bypass test register. this allows data to pass from jtdi to jtdo not affecting the device?s normal operation. this mode can be used to bypass one or more chips in a system with multiple chips that have their jtag scan chain connected in series. the chips not in bypass can then be tested with the normal jtag modes. idcode. this is a mandatory instruction for the ieee 1149.1 specification. when the idcode instruction is latched into the parallel instruction register, the identification test register is selected. the device identification code is loaded into the identification register on the rising edge of jtclk following entry into the capture - dr state. shift - dr can be used to shift the identification code out serially through jtdo. during test - logic - reset, the identification code is forced into the instruction register?s parallel output. highz. all digital outputs are placed into a high-impedance state. the bypass register is connected between jtdi and jtdo. the outputs are put into the hiz mode when the hiz instruction is loaded in the update-ir state and on the positive edge of jtclk. the outputs are returned to their normal mode or driven from the boundary scan register at the positive edge of jtclk during the update-ir state when an instruction other than hiz is activated. clamp. all digital output pins output data from the boundary scan parallel output while connecting the bypass register between jtdi and jtdo. the outputs do not change during the clamp instruction. if the previous instruction was not extest, the outputs will be driven according to the values in the boundary scan register at the positive edge of jtclk in the update-ir state. the typical use of this instruction is in a system that has the jtag scan chain of multiple chips connected in series, and all of the chips have their outputs initialized using the extest mode. then some of the chips are left initialized using the clamp mode and others have their io controlled using the extest mode. this reduces the size of the scan chain during the partial testing of the system.
ds3181/ds3182/ds3183/DS3184 363 of 389 13.4 jtag id codes table 13-2. jtag id codes device revision id[31:28] device code id[27:12] manufacturer?s code id[11:1] required id[0] ds3181 consult factory 0000000001001000 00010100001 1 ds3182 consult factory 0000000001001001 00010100001 1 ds3183 consult factory 0000000001001010 00010100001 1 DS3184 consult factory 0000000001001011 00010100001 1 13.5 jtag functional timing this functional timing for the jtag circuits shows:  the jtag controller starting from reset state  shifting out the first 4 lsb bits of the idcode  shifting in the bypass instruction (111) while shifting out the mandatory x01 pattern  shifting the tdi pin to the tdo pin through the bypass shift register  an asynchronous reset occurs while shifting figure 13-3. jtag functional timing jtclk jtrst jtms jtdi jtdo (state) reset x run test idle select dr scan capture dr shift dr exit1 dr update dr select dr scan select ir scan capture ir shift ir exit1 ir update ir select dr scan capture dr shift dr test logic idle (inst) idcode bypass idcode x x x x x output pin output pin level change if in "extest" instruction mode 13.6 io pins all input, output, and in/out pins are in/out pins in jtag mode.
ds3181/ds3182/ds3183/DS3184 364 of 389 14 pin assignment table 14-1 details the breakdown of the assigned pins for each device. table 14-1. pin assignment breakdown DS3184 ds3183 ds3182 ds3181 i/o signals 275 245 215 185 digital vdd 40 40 40 40 analog vdd 13 13 13 13 vss 68 68 68 68 total 396 assigned pins 366 assigned pins 336 assigned pins 306 assigned pins figure 14-1. DS3184 pin assignments?400-lead bga note: green indicates vss, red indicates vdd, and yellow indicates system interface pins. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 a vss vdd rpos1 vdd_rx3 rxn3 txn3 tsofo1 tlclk1 tpdeno 1 rpdat3 rclko3 rlclk3 tclko3 tclki3 rneg3 tadr[1] tprty tadr[0] ten* vss b mode rohsof 1 rneg1 tclki1 rxp3 txp3 tsofi1 rlclk1 tpdat1 tpdeno 3 rser3 rsofo3 rpdeni3 tneg3 rpos3 rst* tmod[0] tmod[1] tdata[9] vdd c gpio[5] gpio[6] a[10] tpos1 tpdeni1 vdd_ja3 tohsof 1 tohclk1 rpdat1 tpdat3 tlclk3 tsofo3 tser3 tpos3 tadr[4] tdata[21 ] tdata[19 ] tdata[20 ] tdata[25 ]tdata[8] d vdd_rx1 a[5] a[9] tneg1 rohclk 1 rpdeni1 tclko1 toh1 rclko1 roh1 toh3 tsofi3 tpdeni3 rohsof 3 tadr[3] tdata[22 ] tdata[26 ] tdata[27 ]tdxa[4]tdxa[2] e a[1] a[4] a[8] jtrst* tohen1 tser1 vdd_tx3 rsofo1 rser1 roh3 tohclk3 tohsof 3 rohclk 3 tohen3 tadr[2] tdata[23 ] rdata[2 7] rdata[2 0] tdxa[3] rdxa[4] f rxn1 rxp1 jtclk jtms gpio[1] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[3 1] rdata[2 6] rdxa[3] rdxa[2] tdata[24 ] g vdd_ja1 a[3] a[7] jtdo gpio[2] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[3 0] rdata[2 5] ren* rdata[1 9] rdata[1 7] h a[0] a[2] a[6] unused 1 unused 3 vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[2 9] rdata[2 4] rdata[2 2] rdata[1 8] rdata[1 6] j txn1 txp1 jtdi vdd_tx1 d[15] vss vss vss vss vss vss vss vss vss vss rdata[2 8] rdata[2 3] rdata[2 1] rerr tsclk k clka rdy* rd* wr* vdd_cla d vss vss vss vss vss vss vss vss vss vss tspa tdxa[1] rval rdxa[1] rprty l clkb clkc cs* int* width vss vss vss vss vss vss vss vss vss vss reop rsox rmod[0] rmod[1] rdata[0] m txn2 txp2 test* unused 2 unused 4 vss vss vss vss vss vss vss vss vss vss rdata[1 5] rdata[1 1] rdata[2] rdata[1] rsclk n vdd_tx2 ale d[6] d[11] vdd_ja2 vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 4] rdata[1 0] rdata[5] rdata[4] rdata[3] p d[0] d[2] d[7] d[12] gpio[4] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 3] rdata[9] rdata[8] rdata[7] rdata[6] r rxn2 rxp2 hiz* d[13] gpio[3] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 2] tdata[16 ] radr[2] radr[1] radr[0] t vdd_rx2 d[3] d[8] d[14] tohen2 tser2 vdd_tx4 rsofo2 rser2 roh4 tohclk4 tohsof 4 rohclk 4tohen4 tdata[30 ] tdata[17 ] tdata[18 ] tdata[1] radr[4] radr[3] u d[1] d[4] d[9] tneg2 rohclk 2 rpdeni2 tclko2 toh2 rclko2 roh2 toh4 tsofi4 tpdeni4 rohsof 4 tdata[31 ] tdata[29 ] tdata[28 ] tdata[6] tdata[3] tdata[0] v gpio[7] gpio[8] d[10] tpos2 tpdeni2 vdd_ja4 tohsof 2 tohclk2 rpdat2 tpdat4 tlclk4 tsofo4 tser4 tpos4 teop tdata[15 ] tdata[12 ] tdata[5] tdata[4] tdata[2] w vdd d[5] rneg2 tclki2 rxp4 txp4 tsofi2 rlclk2 tpdat2 tpdeno 4 rser4 rsofo4 rpdeni4 tneg4 rpos4 tsox tdata[14 ] tdata[11 ] tdata[10 ]tdata[7] y vss rohsof 2 rpos2 vdd_rx4 rxn4 txn4 tsofo2 tlclk2 tpdeno 2 rpdat4 rclko4 rlclk4 tclko4 tclki4 rneg4 tsx terr tdata[13 ] vdd vss
ds3181/ds3182/ds3183/DS3184 365 of 389 figure 14-2. ds3183 pin assignments?400-lead bga note: green indicates vss, red indicates vdd, yellow indicates system interface pins, and blank cells indicate no connect balls . 1 2 3 4 5 6 7 8 9 1011121314151617181920 a vss vdd rpos1 vdd_rx3 rxn3 txn3 tsofo1 tlclk1 tpdeno 1 rpdat3 rclko3 rlclk3 tclko3 tclki3 rneg3 tadr[1] tprty tadr[0] ten* vss b mode rohsof 1 rneg1 tclki1 rxp3 txp3 tsofi1 rlclk1 tpdat1 tpdeno 3 rser3 rsofo3 rpdeni3 tneg3 rpos3 rst* tmod[0] tmod[1] tdata[9] vdd c gpio[5] gpio[6] a[10] tpos1 tpdeni1 vdd_ja3 tohsof 1 tohclk1 rpdat1 tpdat3 tlclk3 tsofo3 tser3 tpos3 tadr[4] tdata[21 ] tdata[19 ] tdata[20 ] tdata[25 ]tdata[8] d vdd_rx1 a[5] a[9] tneg1 rohclk 1 rpdeni1 tclko1 toh1 rclko1 roh1 toh3 tsofi3 tpdeni3 rohsof 3tadr[3] tdata[22 ] tdata[26 ] tdata[27 ] tdxa[4] tdxa[2] e a[1] a[4] a[8] jtrst* tohen1 tser1 vdd_tx3 rsofo1 rser1 roh3 tohclk3 tohsof 3 rohclk 3 tohen3 tadr[2] tdata[23 ] rdata[2 7] rdata[2 0] tdxa[3] rdxa[4] f rxn1 rxp1 jtclk jtms gpio[1] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[3 1] rdata[2 6] rdxa[3] rdxa[2] tdata[24 ] g vdd_ja1 a[3] a[7] jtdo gpio[2] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[3 0] rdata[2 5] ren* rdata[1 9] rdata[1 7] h a[0] a[2] a[6] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[2 9] rdata[2 4] rdata[2 2] rdata[1 8] rdata[1 6] j txn1 txp1 jtdi vdd_tx1 d[15] vss vss vss vss vss vss vss vss vss vss rdata[2 8] rdata[2 3] rdata[2 1] rerr tsclk k clka rdy* rd* wr* vdd _ cla d vss vss vss vss vss vss vss vss vss vss tspa tdxa[1] rval rdxa[1] rprty l clkb clkc cs* int* width vss vss vss vss vss vss vss vss vss vss reop rsox rmod[0] rmod[1] rdata[0] m txn2 txp2 test* vss vss vss vss vss vss vss vss vss vss rdata[1 5] rdata[1 1] rdata[2] rdata[1] rsclk n vdd_tx2 ale d[6] d[11] vdd_ja2 vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 4] rdata[1 0] rdata[5] rdata[4] rdata[3] p d[0] d[2] d[7] d[12] gpio[4] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 3] rdata[9] rdata[8] rdata[7] rdata[6] r rxn2 rxp2 hiz* d[13] gpio[3] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 2] tdata[16 ] radr[2] radr[1] radr[0] t vdd_rx2 d[3] d[8] d[14] tohen2 tser2 rsofo2 rser2 tdata[30 ] tdata[17 ] tdata[18 ] tdata[1] radr[4] radr[3] u d[1] d[4] d[9] tneg2 rohclk 2 rpdeni2 tclko2 toh2 rclko2 roh2 tdata[31 ] tdata[29 ] tdata[28 ] tdata[6] tdata[3] tdata[0] v gpio[7] gpio[8] d[10] tpos2 tpdeni2 tohsof 2 tohclk2 rpdat2 teop tdata[15 ] tdata[12 ] tdata[5] tdata[4] tdata[2] w vdd d[5] rneg2 tclki2 tsofi2 rlclk2 tpdat2 tsox tdata[14 ] tdata[11 ] tdata[10 ]tdata[7] y vss rohsof 2 rpos2 tsofo2 tlclk2 tpdeno 2 tsxterr tdata[13 ]vddvss figure 14-3. ds3182 pin assignments?400-lead bga note: green indicates vss, red indicates vdd, yellow indicates system interface pins, and blank cells indicate no connect balls . 1 2 3 4 5 6 7 8 9 1011121314151617181920 a vss vdd rpos1 tsofo1 tlclk1 tpdeno 1 tadr[1] tprty tadr[0] ten* vss b mode rohsof 1 rneg1 tclki1 tsofi1 rlclk1 tpdat1 rst* tmod[0] tmod[1] tdata[9] vdd c gpio[5] gpio[6] a[10] tpos1 tpdeni1 tohsof 1 tohclk1 rpdat1 tadr[4] tdata[21 ] tdata[19 ] tdata[20 ] tdata[25 ]tdata[8] d vdd_rx1 a[5] a[9] tneg1 rohclk 1 rpdeni1 tclko1 toh1 rclko1 roh1 tadr[3] tdata[22 ] tdata[26 ] tdata[27 ] tdxa[4] tdxa[2] e a[1] a[4] a[8] jtrst* tohen1 tser1 rsofo1 rser1 tadr[2] tdata[23 ] rdata[2 7] rdata[2 0] tdxa[3] rdxa[4] f rxn1 rxp1 jtclk jtms gpio[1] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[3 1] rdata[2 6] rdxa[3] rdxa[2] tdata[24 ] g vdd_ja1 a[3] a[7] jtdo gpio[2] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[3 0] rdata[2 5] ren* rdata[1 9] rdata[1 7] h a[0] a[2] a[6] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[2 9] rdata[2 4] rdata[2 2] rdata[1 8] rdata[1 6] j txn1 txp1 jtdi vdd_tx1 d[15] vss vss vss vss vss vss vss vss vss vss rdata[2 8] rdata[2 3] rdata[2 1] rerr tsclk k clka rdy* rd* wr* vdd _ cla d vss vss vss vss vss vss vss vss vss vss tspa tdxa[1] rval rdxa[1] rprty l clkb clkc cs* int* width vss vss vss vss vss vss vss vss vss vss reop rsox rmod[0] rmod[1] rdata[0] m txn2 txp2 test* vss vss vss vss vss vss vss vss vss vss rdata[1 5] rdata[1 1] rdata[2] rdata[1] rsclk n vdd_tx2 ale d[6] d[11] vdd_ja2 vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 4] rdata[1 0] rdata[5] rdata[4] rdata[3] p d[0] d[2] d[7] d[12] gpio[4] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 3] rdata[9] rdata[8] rdata[7] rdata[6] r rxn2 rxp2 hiz* d[13] gpio[3] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 2] tdata[16 ] radr[2] radr[1] radr[0] t vdd_rx2 d[3] d[8] d[14] tohen2 tser2 rsofo2 rser2 tdata[30 ] tdata[17 ] tdata[18 ] tdata[1] radr[4] radr[3] u d[1] d[4] d[9] tneg2 rohclk 2 rpdeni2 tclko2 toh2 rclko2 roh2 tdata[31 ] tdata[29 ] tdata[28 ] tdata[6] tdata[3] tdata[0] v gpio[7] gpio[8] d[10] tpos2 tpdeni2 tohsof 2 tohclk2 rpdat2 teop tdata[15 ] tdata[12 ] tdata[5] tdata[4] tdata[2] w vdd d[5] rneg2 tclki2 tsofi2 rlclk2 tpdat2 tsox tdata[14 ] tdata[11 ] tdata[10 ]tdata[7] y vss rohsof 2 rpos2 tsofo2 tlclk2 tpdeno 2 tsxterr tdata[13 ]vddvss
ds3181/ds3182/ds3183/DS3184 366 of 389 figure 14-4. ds3181 pin assignments?400-lead bga note: green indicates vss, red indicates vdd, yellow indicates system interface pins, and blank cells indicate no connect balls . 1 2 3 4 5 6 7 8 9 1011121314151617181920 a vss vdd rpos1 tsofo1 tlclk1 tpdeno 1 tadr[1] tprty tadr[0] ten* vss b mode rohsof 1 rneg1 tclki1 tsofi1 rlclk1 tpdat1 rst* tmod[0] tmod[1] tdata[9] vdd c gpio[5] gpio[6] a[10] tpos1 tpdeni1 tohsof 1 tohclk1 rpdat1 tadr[4] tdata[21 ] tdata[19 ] tdata[20 ] tdata[25 ]tdata[8] d vdd_rx1 a[5] a[9] tneg1 rohclk 1 rpdeni1 tclko1 toh1 rclko1 roh1 tadr[3] tdata[22 ] tdata[26 ] tdata[27 ] tdxa[4] tdxa[2] e a[1] a[4] a[8] jtrst* tohen1 tser1 rsofo1 rser1 tadr[2] tdata[23 ] rdata[2 7] rdata[2 0] tdxa[3] rdxa[4] f rxn1 rxp1 jtclk jtms gpio[1] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[3 1] rdata[2 6] rdxa[3] rdxa[2] tdata[24 ] g vdd_ja1 a[3] a[7] jtdo gpio[2] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[3 0] rdata[2 5] ren* rdata[1 9] rdata[1 7] h a[0] a[2] a[6] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[2 9] rdata[2 4] rdata[2 2] rdata[1 8] rdata[1 6] j txn1 txp1 jtdi vdd_tx1 d[15] vss vss vss vss vss vss vss vss vss vss rdata[2 8] rdata[2 3] rdata[2 1] rerr tsclk k clka rdy* rd* wr* vdd _ cla d vss vss vss vss vss vss vss vss vss vss tspa tdxa[1] rval rdxa[1] rprty l clkb clkc cs* int* width vss vss vss vss vss vss vss vss vss vss reop rsox rmod[0] rmod[1] rdata[0] m txn2 txp2 test* vss vss vss vss vss vss vss vss vss vss rdata[1 5] rdata[1 1] rdata[2] rdata[1] rsclk n ale d[6] d[11] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 4] rdata[1 0] rdata[5] rdata[4] rdata[3] p d[0] d[2] d[7] d[12] gpio[4] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 3] rdata[9] rdata[8] rdata[7] rdata[6] r hiz* d[13] gpio[3] vdd vdd vdd vss vss vss vss vdd vdd vdd rdata[1 2] tdata[16 ] radr[2] radr[1] radr[0] t d[3] d[8] d[14] tdata[30 ] tdata[17 ] tdata[18 ] tdata[1] radr[4] radr[3] u d[1]d[4]d[9] tdata[31 ] tdata[29 ] tdata[28 ] tdata[6] tdata[3] tdata[0] v gpio[7] gpio[8] d[10] teop tdata[15 ] tdata[12 ] tdata[5] tdata[4] tdata[2] w vddd[5] tsox tdata[14 ] tdata[11 ] tdata[10 ]tdata[7] y vss tsxterr tdata[13 ]vddvss
ds3181/ds3182/ds3183/DS3184 367 of 389 15 package mechanical dimensions note: all dimensions in millimeters. integrated metal heat spreader. figure 15-1. mechanical dimensions?400-lead bga
ds3181/ds3182/ds3183/DS3184 368 of 389
ds3181/ds3182/ds3183/DS3184 369 of 389 figure 15-2. mechanical dimensions (continued)
ds3181/ds3182/ds3183/DS3184 370 of 389 16 package thermal information the 36 thermal vss balls in the center 6x6 matrix must be thermally and electrically connected to the internal gnd plane of the pc board to achieve these thermal characteristics. parameter value target ambient temperature range -40c to +85c die junction temperature range -40 to +125  c theta-ja, still air 12.6  c/w (note 1) note 1: theta-ja is based on the package mounted on a 4-layer jedec board and measured in a jedec test chamber.
ds3181/ds3182/ds3183/DS3184 371 of 389 17 dc electrical characteristics absolute maximum ratings voltage range on any input, bidirectional, or open-drain output lead with respect to v ss ????????????????????????????..-0.3v to +5.5v supply voltage (v dd ) with respect to v ss ..????????????????????????....-0.3v to +3.63v ambient operating temperature range??????????????????????????..-40c to +85c junction operating temperature range? ?????????????????????????-40c to +125c storage temperature range??????????? ???????????????????...-55c to +125c soldering temperature range????????????????????????.see ipc/jedec j - std - 020a these are stress ratings only and functional operation of the device at these or any other conditions beyond those indicated in the operation sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods of time can affect device reliability. ambient operating temperature range is assuming the device is mounted on a jedec standard test board in a convecti on cooled jedec test enclosure. note: the typical values listed below are not production tested. table 17-1. recommended dc operating conditions (v dd = 3.3v  5%, t j = -40c to +85c.) parameter symbol conditions min typ max units logic 1 v ih 2.0 5.5 v logic 0 v il -0.3 +0.8 v supply. 5% v dd 3.135 3.300 3.465 v table 17-2. dc electrical characteristics (t j = -40c to +85c) parameter symbol conditions min typ max units supply current (v dd = 3.465v), DS3184 i dd (notes 1, 2) 760 850 ma power-down current (all disable bits set) for DS3184 i ddd (note 2) 88 130 ma lead capacitance c io 7 pf input leakage i il (note 3) -10 +10  a input leakage (input pins with internal pullup resistors) i ilp -300 +10  a output leakage (when high impedance) i lo -10 +10  a output voltage (i oh = -4.0ma) v oh 4ma outputs 2.4 v output voltage (i ol = +4.0ma) v ol 4ma outputs 0.4 v output voltage (i oh = -6.0ma) v oh 6ma outputs 2.4 v output voltage (i ol = +6.0ma) v ol 6ma outputs 0.4 v note 1: mode: sts-1 datarate, transmitting all ones on the liu, all clocks = 52mhz, digital outputs w/o load. note 2: all outputs loaded with rated capacitance; all inputs between v dd and v ss ; inputs with pullups connected to vdd. note 3: this applies to input pins except for ten and ren , which have the limit of 25  a.
ds3181/ds3182/ds3183/DS3184 372 of 389 table 17-3. output pin drive pin name type drive strength (ma) tlclkn o 6 tposn /tdatn o 6 tnegn/tohmon o 6 txpn o n/a (analog) txnn o n/a (analog) tohclkn o 4 tohsofn o 4 rohn o 4 rohclkn o 4 rohsofn o 4 tpohclkn/ tclkon/tgclkn o 6 tpohsofn/tsofon/ tdenn/tfohenon o 6 tpdatn o 6 tpdenon o 6 rpohn/rsern o 6 rpohclkn/ rclkon/rgclkn o 6 rpohsofn/rsofon/ rdenn/rfohenon o 6 tdxa[1]/tpxa oz 6 tdxa[4:2] o 6 tspa oz 6 rdata[31:0] oz 6 rprty o 6 rdxa[1]/rpxa/rsx oz 6 rdxa[4:2] o 6 rsox oz 6 reop oz 6 rval oz 6 rmod[1:0] oz 6 rerr oz 6 d[15:0] io 4 rdy oz 6 int oz 6 gpio[7:0] io 4 jtdo oz 4 clkb io 6 clkc io 6
ds3181/ds3182/ds3183/DS3184 373 of 389 18 ac timing characteristics there are several common ac characteristic definitions. these generic definitions are shown below in figure 18-1 , figure 18-2 , figure 18-3 , and figure 18-4 . definitions that are specific to a given interface are shown in that interface?s subsection. figure 18-1. clock period and duty cycle definitions clock t1 t2 t2 figure 18-2. rise time, fall time, and jitter definitions clock t1 t4 t3 t3 t4/2 figure 18-3. hold, setup, and dela y definitions (ris ing clock edge) clock din t5 t6 dout t7
ds3181/ds3182/ds3183/DS3184 374 of 389 figure 18-4. hold, setup, and dela y definitions (fa lling clock edge) clock din t5 t6 dout t7 figure 18-5. to/from high-z delay definitions (ris ing clock edge) clock dout t8 t9 figure 18-6. to/from high-z delay definitions (fa lling clock edge) clock dout t8 t9
ds3181/ds3182/ds3183/DS3184 375 of 389 18.1 fractional port characteristics all ac timing characteristics are specified with a 25 pf capacitive load on all output pins, v ih = 2.4v and v il = 0.8v. the voltage threshold for all timing measurements is vdd/2. the generic timing definitions shown in figure 18-1 , figure 18-2 , figure 18-3 , and figure 18-6 apply to this interface . table 18-1. fractional port timing (v dd = 3.3v  5%, t j = -40c to +85c.) parameter symbol conditions min typ max units clk period t1 (note 1) 19.23 ns clk clock duty cycle (t2/t1) t2/t1 (note 2) 40 50 60 % clk rise or fall times (20% to 80%) t3 (note 2) 4 ns (note 3) 3 ns din to clk setup time t5 (note 4) 7 ns (note 3) 1 ns clk to din hold time t6 (note 4) 1 ns (note 5) 2 11 ns clk to dout delay t7 (note 6) 2 9 ns note 1: any mode, 52mhz tclkin, rlclkn input clocks. note 2: any mode, tclkin, rlclkn input clocks. note 3: tclkin, rlclkn clock inputs to tohmin/tsofin, tfohn/tsern, tfohenin, rfohenin inputs. note 4: tclkon, rclkon clock outputs to tohmin/tsofin, tfohn/tsern, tfohenon, rfohenon inputs. note 5: tclkin, rlclkn clock input to tsofon/tdenn, rsern, rsofon/rdenn, tpdenon, tpdatn, and rpdatn outputs. note 6: tclkon, rclkon clock output to tsofon/tdenn, rsern, rsofon/rdenn, tpdenon, tpdatn and rpdatn outputs. 18.2 line interface ac characteristics all ac timing characteristics are specified with a 25 pf capacitive load on all output pins, v ih = 2.4v and v il = 0.8v. the voltage threshold for all timing measurements is vdd/2. the generic timing definitions shown in figure 18-1 , figure 18-2 , figure 18-3 , and figure 18-6 apply to this interface . table 18-2. line interface timing (v dd = 3.3v  5%, t j = -40c to +85c.) parameter symbol conditions min typ max units clk period t1 (note 1) 19.23 ns clk clock duty cycle (t2/t1) t2/t1 (note 2) 40 50 60 % clk rise or fall times (20% to 80 %) t3 (note 2) 4 ns din to clk setup time t5 (note 3) 4 ns clk to din hold time t6 (note 3) 0 ns (note 4) 2 10 ns clk to dout delay t7 (note 5) 2 8 ns note 1: any mode, 52mhz tclkin, rlclkn input clocks. note 2: any mode, tclkin, rlclkn input clocks. note 3: rlclkn clock inputs to rposn/rdatn, rnegn/rlcvn/rohmin inputs. note 4: tclkin, rlclkn clock input to tposn/tdatn, tnegn/tohmon outputs. note 5: tclkon, rclkon clock output to tposn/tdatn, tnegn/tohmon outputs.
ds3181/ds3182/ds3183/DS3184 376 of 389 18.3 miscellaneous pin ac characteristics all ac timing characteristics are specified with a 25 pf capacitive load on all output pins, v ih = 2.4v and v il = 0.8v. the voltage threshold for all timing measurements is vdd/2. the generic timing definitions shown in figure 18-1 and figure 18-2 apply to this interface . table 18-3. miscellaneous pin timing (v dd = 3.3v  5%, t j = -40c to +85c.) parameter symbol conditions min typ max units asynchronous input high, low time t1, t2 (note 1) 500 ns asynchronous input rise, fall time t3 (note 1) 10 ns note 1: tmei (gpio), pmu (gpio), 8krefi(gpio) and rst inputs. 18.4 overhead port ac characteristics all ac timing characteristics are specified with a 25 pf capacitive load on all output pins, v ih = 2.4v and v il = 0.8. the voltage threshold for all timing measurements is vdd/2. the generic timing definitions shown in figure 18-1 , figure 18-2 , figure 18-3 , and figure 18-6 apply to this interface . table 18-4. overhead port timing (v dd = 3.3v  5%, t j = -40c to +125c.) parameter symbol conditions min typ max units clk period t1 (note 1) 500 ns clk clock high and low time t1, t2 (note 1) 200 ns din to clk setup time t5 (note 2) 20 ns clk to din hold time t6 (note 2) 20 ns clk to dout delay t7 (note 3) -20 20 ns note 1: tohclkn, tpohclkn, rohclkn, rpohclkn output clocks. note 2: tohclkn, tpohclkn clock falling edge outputs to tohn, tohenn, tpohn, tpohenn inputs. note 3: tohclkn, tpohclkn, rohclkn, rpohclkn clock falling edge outputs to tohsofn, tpohsofn, rohn, rohsof, rpohn, rpohsofn outputs.
ds3181/ds3182/ds3183/DS3184 377 of 389 18.5 system interface ac characteristics the ac characteristics of the system interface depend upon the mode of the interface. while utopia vs. pos- phy mode does not have an effect on the ac characteristics, l2 vs. l3 does. therefore, there are two tables: one for l2 ( table 18-5 ) and one for l3 ( table 18-6 ). the generic timing definitions shown in figure 18-1 , figure 18-2 , figure 18-3 , and figure 18-6 apply to this interface . table 18-5. system interface l2 timing (v dd = 3.3v  5%, t j = -40c to +125c.) signal name(s) symbol description min typ max units rsclk and tsclk f1 clock frequency (1/t1) (note 1) 0 52 mhz rsclk and tsclk t2/t1 clock duty cycle (note 1) 40 50 60 % rsclk and tsclk t3 rise/fall times (notes 1, 2) 2 ns radr and ren t5 hold time from rsclk (note 1) 0 ns radr and ren t6 setup time to rsclk (note 1) 3.5 ns rdata, rprty, rpxa, rsox, reop, rval, rmod, and rerr t7 delay from rsclk (notes 1, 3) 2 12 ns rdata, rprty, rpxa, rsox, reop, rval, rmod, and rerr t8 from high-z delay from rsclk (notes 1, 3) 2 12 ns rdata, rprty, rpxa, rsox, reop, rval, rmod, and rerr t9 to high-z delay from rsclk (notes 1, 3) 2 15 ns tdata, tprty, tadr, ten , tsox, teop, tmod, and terr t5 hold time from tsclk (note 1) 0 ns tdata, tprty, tadr, ten , tsox, teop, tmod, and terr t6 setup time to tsclk (note 1) 3.5 ns tpxa and tspa t7 delay from tsclk (notes 1, 3) 2 12 ns tpxa and tspa t8 from high-z delay from tsclk (notes 1, 3) 2 12 ns tpxa and tspa t9 to high-z delay from tsclk (notes 1, 3) 2 15 ns note 1: the input/output timing reference level for all signals is v dd /2. note 2: rise and fall times are measured at output side with the output unloaded. rise time is measured from 20% to 80% v oh . fall time is measured from 80% to 20% v oh . note 3: these times are met with a 30pf, 300  load on the associated output pin.
ds3181/ds3182/ds3183/DS3184 378 of 389 table 18-6. system interface l3 timing (v dd = 3.3v  5%, t j = -40c to +125c.) signal name(s) symbol description min typ max units rsclk and tsclk f1 clock frequency (1/t1) (note 1) 0 66 mhz rsclk and tsclk t2/t1 clock duty cycle (note 1) 40 50 60 % rsclk and tsclk t3 rise/fall times (notes 1, 2) 2 ns radr and ren t5 hold time from rsclk (note 1) 0 ns radr and ren t6 setup time to rsclk (note 1) 3.5 ns rdata, rprty, rpxa, rsox, reop, rval, rmod, and rerr t7 delay from rsclk (notes 1, 3) 2 9.5 ns tdata, tprty, tadr, ten , tsox, teop, tmod, and terr t5 hold time from tsclk (note 1) 0 ns tdata, tprty, tadr, ten , tsox, teop, tmod, and terr t6 setup time to tsclk (note 1) 3.5 ns tpxa and tspa t7 delay from tsclk (notes 1, 3) 2 9.5 ns note 1: the input/output timing reference level for all signals is v dd /2. note 2: rise and fall times are measured at output side with the output unloaded. rise time is measured from 20% to 80% v oh . fall time is measured from 80% to 20% v oh . note 3: these times are met with a 30pf, 300  load on the associated output pin.
ds3181/ds3182/ds3183/DS3184 379 of 389 18.6 micro interface ac characteristics the ac characteristics for the external bus interface. this table references figure 18-7 and figure 18-8 . table 18-7. micro interface timing ( v dd = 3.3 5%, tj = -40c to +125c.) signal name(s) symbol description min typ max units a[n:0] t1a setup time to rd , wr , ds active (note 1) 10 ns ale t1b setup time to rd , wr , ds active (notes 1, 2) 10 ns a[n:0] t2 setup time to ale inactive (notes 1, 2) 2 ns a[n:0] t3 hold time from ale inactive (notes 1, 2) 2 ns ale t4 pulse width (notes 1, 2) 5 ns a[n:0], ale t5 hold time from rd , wr , ds inactive (note 1) 0 ns cs , r/ w t6 setup time to rd , wr active (note 1) 0 ns d[15:0] t8 output delay time from rd , ds active (note 1) 30 ns rd , wr , ds t9a pulse width if not using rdy handshake (notes 1, 4) 35 ns rd , wr , ds t9b delay from rdy (note 1) 15 ns d[15:0] t10 output deassert delay time from rd , ds inactive (notes 1, 3) 2 10 ns cs , r/ w t12 hold time from rd , wr , ds inactive (note 1) 0 ns d[15:0] t13 input setup time to wr , ds inactive (note 1) 10 ns d[15:0] t14 input hold time from wr, ds inactive (note 1) 5 ns rdy t15 delay time from rd , wr , ds active (note 1) 5 ns rdy t16 delay time from rd , wr , ds inactive (note 1) 0 ns rdy t17 enable delay time from cs active (note 1) 12 ns rdy t18 disable delay time from cs inactive (note 1) 10 ns rdy t19 ending high pulse width (note 1) 1 ns r/ w t20 setup time to ds active (note 1) 2 ns r/ w t21 hold time to ds inactive (note 1) 2 ns note 1: the input/output timing reference level for all signals is v dd /2. transition time (80/20%) on rd , wr and cs inputs is 5ns max. note 2: multiplexed mode timing only. note 3: d[15:0] output valid until not driven. note 4: timing required if not using rdy handshake.
ds3181/ds3182/ds3183/DS3184 380 of 389 figure 18-7. micro interface nonmultiplexed read/write cycle d[15:0] rdy* t8 t10 cs* t6 t12 rd* wr* ds* t9a a[10:0] t5 t1a d[15:0] t13 t14 t15 t16 t17 t18 t19 r/w* t20 t21 t9b
ds3181/ds3182/ds3183/DS3184 381 of 389 figure 18-8. micro interface multiplexed read cycle d[15:0] rdy* t8 t10 cs* t6 t12 rd* wr* ds* t9a d[15:0] t13 t14 t15 t16 t17 t18 t19 r/w* t20 t21 a[10:0] t1a ale t2 t3 t4 t1b t9b t5
ds3181/ds3182/ds3183/DS3184 382 of 389 18.7 clad jitter characteristics parameter min typ max units intrinsic jitter (ui p-p ) 0.025 ui p-p intrinsic jitter (ui rms ) 0.0045 ui rms peak jitter transfer 1.75 db 18.8 liu interface ac characteristics 18.8.1 waveform templates table 18-8. ds3 waveform template time (in unit intervals) normalized amplitude equation upper curve -0.85  t  -0.68 0.03 -0.68  t  +0.36 0.5 {1 + sin[( / 2)(1 + t / 0.34)]} + 0.03 0.36  t  1.4 0.08 + 0.407e -1.84(t - 0.36) lower curve -0.85  t  -0.36 -0.03 -0.36  t  +0.36 0.5 {1 + sin[( / 2)(1 + t / 0.18)]} - 0.03 0.36  t  1.4 -0.03 governing specifications: ansi t1.102 and bellcore gr-499. table 18-9. ds3 waveform test parameters and limits parameter specification rate 44.736mbps (  20ppm) line code b3zs transmission medium coaxial cable (at&t 734a or equivalent) test measurement point at the end of 0 to 450ft of coaxial cable test termination 75  (  1%) resistive pulse amplitude between 0.36v and 0.85v pulse shape an isolated pulse (preceded by two zeros and followed by one or more zeros) falls within the curves listed in figure 18-9 . unframed all-ones power level at 22.368mhz between -1.8dbm and +5.7dbm unframed all-ones power level at 44.736mhz at least 20db less than the power measured at 22.368mhz pulse imbalance of isolated pulses ratio of positive and negative pulses must be between 0.90 and 1.10.
ds3181/ds3182/ds3183/DS3184 383 of 389 table 18-10. sts-1 waveform template time (in unit intervals) norm alized amplitude equations upper curve -0.85  t  -0.68 0.03 -0.68  t  +0.26 0.5 {1 + sin[( / 2)(1 + t / 0.34)]} + 0.03 0.26  t  1.4 0.1 + 0.61e -2.4(t - 0.26) lower curve -0.85  t  -0.36 -0.03 -0.36  t  +0.36 0.5 {1 + sin[( / 2)(1 + t / 0.18)]} - 0.03 0.36  t  1.4 -0.03 governing specifications: bellcore gr-253 and bellcore gr-499 and ansi t1.102. table 18-11. sts-1 waveform test parameters and limits parameter specification rate 51.840mbps (  20ppm) line code b3zs transmission medium coaxial cable (at&t 734a or equivalent) test measurement point at the end of 0 to 450ft of coaxial cable test termination 75  (  1%) resistive pulse amplitude 0.800v nominal (not covered in specs) pulse shape an isolated pulse (preceded by two zeros and followed by one or more zeros) falls within the curved listed in table 18-10 . unframed all-ones power level at 25.92mhz between -1.8dbm and +5.7dbm unframed all-ones power level at 51.84mhz at least 20db less than the power measured at 25.92mhz.
ds3181/ds3182/ds3183/DS3184 384 of 389 figure 18-9. e3 waveform template 0 -0.1 -0.2 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 time (ns) g.703 e3 template output level (v) 29.1 24.5 12.1 8.65 17 table 18-12. e3 waveform test parameters and limits parameter specification rate 34.368mbps (  20ppm) line code hdb3 transmission medium coaxial cable (at&t 734a or equivalent) test measurement point at the transmitter test termination 75  (  1%) resistive pulse amplitude 1.0v (nominal) pulse shape an isolated pulse (preceded by two zeros and followed by one or more zeros) falls within the template shown in figure 18-9 . ratio of the amplitudes of positive and negative pulses at the center of the pulse interval 0.95 to 1.05 ratio of the widths of positive and negative pulses at the nominal half amplitude 0.95 to 1.05
ds3181/ds3182/ds3183/DS3184 385 of 389 figure 18-10. sts-1 pulse mask template
ds3181/ds3182/ds3183/DS3184 386 of 389 figure 18-11. ds3 pulse mask template 18.8.2 liu input/output characteristics table 18-13. receiver input ch aracteristics?ds3 and cc52 modes (v dd = 3.3v  5%, t a = -40c to +85c.) parameter min typ max units receive sensitivity (length of cable) 900 1200 ft signal-to-noise ratio, interfering signal test (notes 1, 2) 10 input pulse amplitude, rmon = 0 (notes 2, 3) 1000 mvpk input pulse amplitude, rmon = 1 (notes 2, 3) 200 mvpk analog los declare, rmon = 0 (note 4) -24 db analog los clear, rmon = 0 (note 4) -17 db analog los declare, rmon = 1 (note 4) -38 db analog los clear, rmon = 1 (note 4) -29 db intrinsic jitter generation (note 2) 0.03 ui p-p
ds3181/ds3182/ds3183/DS3184 387 of 389 table 18-14. receiver input characteristics?e3 mode (v dd = 3.3v  5%, t a = -40c to +85c.) parameter min typ max units receive sensitivity (length of cable) 900 1200 ft signal-to-noise ratio, interfering signal test (notes 1, 2) 12 input pulse amplitude, rmon = 0 (notes 2, 3) 1300 mvpk input pulse amplitude, rmon = 1 (notes 2, 3) 260 mvpk analog los declare, rmon = 0 (note 4) -24 db analog los clear, rmon = 0 (note 4) -17 db analog los declare, rmon = 1 (note 4) -38 db analog los clear, rmon = 1 (note 4) -29 db intrinsic jitter generation (note 2) 0.03 ui p-p note 1: an interfering signal (2 15 ? 1 prbs for ds3/sts-1, 2 23 ? 1 prbs for e3, b3zs/hdb3 encoded, compliant waveshape, nominal bit rate) is added to the wanted signal. the combined signal is passed through 0 to 900ft of coaxial cable and presented to the liu . this spec indicates the lowest signal-to-noise ratio that results in a bit error ratio < 10 -9 . note 2: not tested during production test. note 3: measured on the line side (i.e., the bnc connector side) of the 1:2 receive transformer ( figure 1-1 ). during measurement, incoming data traffic is unframed 2 15 ? 1 prbs for ds3/sts-1 and unframed 2 23 ? 1 prbs for e3. note 4: with respect to nominal 800mvpk signal for ds3/sts-1 and nominal 1000mvpk signal for e3. table 18-15. transmitter output characteristics?ds3 and sts-1 modes (v dd = 3.3v  5%, t a = -40c to +85c.) parameter min typ max units ds3 output pulse amplitude, tlbo = 0 (note 5) 700 800 900 mvpk ds3 output pulse amplitude, tlbo = 1 (note 5) 520 700 800 mvpk cc52 output pulse amplitude, tlbo = 0 (note 5) 700 800 1100 mvpk cc52 output pulse amplitude, tlbo = 1 (note 5) 520 700 850 mvpk ratio of positive and negative pulse-peak amplitudes 0.9 1.1 ds3 unframed all-ones power level at 22.368mhz, 3khz bandwidth -1.8 +5.7 dbm ds3 unframed all-ones power level at 44.736mhz vs. power level at 22.368mhz, 3khz bandwidth -20 db intrinsic jitter generation (note 5) 0.02 0.05 ui p-p table 18-16. transmitter output characteristics?e3 mode (v dd = 3.3v  5%, t a = -40c to +85c.) parameter min typ max units output pulse amplitude (note 5) 900 1000 1100 mvpk pulse width 14.55 ns ratio of positive and negative pulse amplitudes (at centers of pulses) 0.95 1.05 ratio of positive and negative pulse widths (at nominal half amplitude) 0.95 1.05 intrinsic jitter generation (note 6) 0.02 0.05 ui p-p note 5: measured on the line side (i.e., the bnc connector side) of the 2:1 transmit transformer ( figure 1-1 ). note 6: measured with jitter-free clock applied to tclk and a bandpass jitter filter with 10hz and 800khz cutoff frequencies. not teste d during production test.
ds3181/ds3182/ds3183/DS3184 388 of 389 18.9 jtag interface ac characteristics all ac timing characteristics are specified with a 50pf capacitive load on jtdo pin and 25pf capacitive load on all other digital output pins, v ih = 2.4v and v il = 0.8. the voltage threshold for all timing measurements is vdd/2. the generic timing definitions shown figure 18-1 , figure 18-2 , figure 18-3 , figure 18-5 , and figure 18-6 apply to this interface. table 18-17. jtag interface timing (v dd = 3.3v  5%, t j = -40c to +125c.) signal name(s) symbol description min typ max units jtclk f1 clock frequency (1/t1) 0 10 mhz jtclk t2 clock high or low period 20 ns jtclk t3 rise/fall times 5 ns jtms and jtdi t5 hold time from jtclk rising edge 10 ns jtms and jtdi t6 setup time to jtclk rising edge 10 ns jtdo t7 delay from jtclk falling edge 0 30 ns jtdo t8 delay out of high-z from jtclk falling edge 0 30 ns jtdo t9 delay to high-z from jtclk falling edge 0 30 ns any digital output t7 delay from jtclk falling edge (note 1) 0 30 ns any digital output t7 delay from jtclk rising edge (note 2) 0 30 ns any digital output t8 delay out of high-z from jtclk falling edge (note 1) 0 30 ns any digital output t9 delay into high-z from jtclk falling edge (note 1) 0 30 ns any digital output t8 delay out of high-z from jtclk rising edge (notes 2, 3) 0 30 ns any digital output t9 delay into high-z from jtclk rising edge (notes 2, 3) 0 30 ns note 1: change during update-dr state. note 2: change during update-ir state to or from extest mode. note 3: change during update-ir state to or from hiz mode.
ds3181/ds3182/ds3183/DS3184 389 of 389 maxim/dallas semiconductor cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a ma xim/dallas semiconductor product. no circuit patent licenses are implied. maxim/dallas semiconductor reserves the right to change the circuitry and specification s without notice at any time. maxim integrated products, 120 san gabriel drive, sunnyvale, ca 94086 408-737-7600 ? 2004 maxim integrated products  printed usa are registered trademarks of maxim integrated products, inc., and dallas semiconductor corporation. 19 revision history date description 061604 new product release. note: to obtain a revision history for the preliminary releases of this document, contact the factory at telecom.support@dalsemi.com .


▲Up To Search▲   

 
Price & Availability of DS3184

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X